var kc=e=>{throw TypeError(e)};var hl=(e,t,n)=>t.has(e)||kc("Cannot "+n);var N=(e,t,n)=>(hl(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?kc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),D=(e,t,n,r)=>(hl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(hl(e,t,"access private method"),n);var bs=(e,t,n,r)=>({set _(o){D(e,t,o,n)},get _(){return N(e,t,r)}});function Kg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zf={exports:{}},zi={},Df={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ds=Symbol.for("react.element"),Qg=Symbol.for("react.portal"),Gg=Symbol.for("react.fragment"),Xg=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),qg=Symbol.for("react.provider"),Zg=Symbol.for("react.context"),Jg=Symbol.for("react.forward_ref"),ev=Symbol.for("react.suspense"),tv=Symbol.for("react.memo"),nv=Symbol.for("react.lazy"),Nc=Symbol.iterator;function rv(e){return e===null||typeof e!="object"?null:(e=Nc&&e[Nc]||e["@@iterator"],typeof e=="function"?e:null)}var $f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bf=Object.assign,Uf={};function oo(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||$f}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vf(){}Vf.prototype=oo.prototype;function iu(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||$f}var lu=iu.prototype=new Vf;lu.constructor=iu;Bf(lu,oo.prototype);lu.isPureReactComponent=!0;var Pc=Array.isArray,Wf=Object.prototype.hasOwnProperty,au={current:null},Hf={key:!0,ref:!0,__self:!0,__source:!0};function Kf(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Wf.call(t,r)&&!Hf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=P[W];if(0>>1;Wo(me,L))jeo(J,me)?(P[W]=J,P[je]=L,W=je):(P[W]=me,P[Y]=L,W=Y);else if(jeo(J,L))P[W]=J,P[je]=L,W=je;else break e}}return T}function o(P,T){var L=P.sortIndex-T.sortIndex;return L!==0?L:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],d=1,p=null,g=3,f=!1,S=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=P)r(u),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(u)}}function C(P){if(y=!1,v(P),!S)if(n(a)!==null)S=!0,B(b);else{var T=n(u);T!==null&&V(C,T.startTime-P)}}function b(P,T){S=!1,y&&(y=!1,m(j),j=-1),f=!0;var L=g;try{for(v(T),p=n(a);p!==null&&(!(p.expirationTime>T)||P&&!$());){var W=p.callback;if(typeof W=="function"){p.callback=null,g=p.priorityLevel;var z=W(p.expirationTime<=T);T=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(a)&&r(a),v(T)}else r(a);p=n(a)}if(p!==null)var Q=!0;else{var Y=n(u);Y!==null&&V(C,Y.startTime-T),Q=!1}return Q}finally{p=null,g=L,f=!1}}var E=!1,k=null,j=-1,_=5,M=-1;function $(){return!(e.unstable_now()-M<_)}function F(){if(k!==null){var P=e.unstable_now();M=P;var T=!0;try{T=k(!0,P)}finally{T?K():(E=!1,k=null)}}else E=!1}var K;if(typeof h=="function")K=function(){h(F)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,X=O.port2;O.port1.onmessage=F,K=function(){X.postMessage(null)}}else K=function(){w(F,0)};function B(P){k=P,E||(E=!0,K())}function V(P,T){j=w(function(){P(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){S||f||(S=!0,B(b))},e.unstable_forceFrameRate=function(P){0>P||125W?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(y?(m(j),j=-1):y=!0,V(C,L-W))):(P.sortIndex=z,t(a,P),S||f||(S=!0,B(b))),P},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(P){var T=g;return function(){var L=g;g=T;try{return P.apply(this,arguments)}finally{g=L}}}})(Zf);qf.exports=Zf;var hv=qf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mv=x,Ze=hv;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,gv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tc={},Ac={};function vv(e){return Xl.call(Ac,e)?!0:Xl.call(Tc,e)?!1:gv.test(e)?Ac[e]=!0:(Tc[e]=!0,!1)}function yv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xv(e,t,n,r){if(t===null||typeof t>"u"||yv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var cu=/[\-:]([a-z])/g;function du(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(cu,du);Pe[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(cu,du);Pe[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(cu,du);Pe[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function fu(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var a=` `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function wv(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=yl(e.type,!1),e;case 11:return e=yl(e.type.render,!1),e;case 1:return e=yl(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cr:return"Fragment";case wr:return"Portal";case Yl:return"Profiler";case pu:return"StrictMode";case ql:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tp:return(e.displayName||"Context")+".Consumer";case ep:return(e._context.displayName||"Context")+".Provider";case hu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mu:return t=e.displayName||null,t!==null?t:Jl(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Jl(e(t))}catch{}}return null}function Cv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(t);case 8:return t===pu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sv(e){var t=rp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=Sv(e))}function op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ea(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sp(e,t){t=t.checked,t!=null&&fu(e,"checked",t,!1)}function ta(e,t){sp(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?na(e,t.type,n):t.hasOwnProperty("defaultValue")&&na(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function na(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var No=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ps.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var To={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bv=["Webkit","ms","Moz","O"];Object.keys(To).forEach(function(e){bv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),To[t]=To[e]})});function up(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||To.hasOwnProperty(e)&&To[e]?(""+t).trim():t+"px"}function cp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=up(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ev=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sa(e,t){if(t){if(Ev[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function ia(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var la=null;function gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var aa=null,Or=null,_r=null;function Ic(e){if(e=hs(e)){if(typeof aa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Vi(t),aa(e.stateNode,e.type,t))}}function dp(e){Or?_r?_r.push(e):_r=[e]:Or=e}function fp(){if(Or){var e=Or,t=_r;if(_r=Or=null,Ic(e),t)for(e=0;e>>=0,e===0?32:31-(Lv(e)/Iv|0)|0}var js=64,Ts=4194304;function Po(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Po(l):(s&=i,s!==0&&(r=Po(s)))}else i=n&~o,i!==0?r=Po(i):s!==0&&(r=Po(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function $v(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ro),Hc=" ",Kc=!1;function Mp(e,t){switch(e){case"keyup":return hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function gy(e,t){switch(e){case"compositionend":return Op(t);case"keypress":return t.which!==32?null:(Kc=!0,Hc);case"textInput":return e=t.data,e===Hc&&Kc?null:e;default:return null}}function vy(e,t){if(Sr)return e==="compositionend"||!Eu&&Mp(e,t)?(e=Ap(),Xs=Cu=xn=null,Sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yc(n)}}function Fp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zp(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ny(e){var t=zp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fp(n.ownerDocument.documentElement,n)){if(r!==null&&ku(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=qc(n,s);var i=qc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,br=null,ha=null,Oo=null,ma=!1;function Zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ma||br==null||br!==ai(r)||(r=br,"selectionStart"in r&&ku(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oo&&Ko(Oo,r)||(Oo=r,r=mi(ha,"onSelect"),0Nr||(e.current=Ca[Nr],Ca[Nr]=null,Nr--)}function re(e,t){Nr++,Ca[Nr]=e.current,e.current=t}var Mn={},Oe=zn(Mn),Ue=zn(!1),nr=Mn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(e){return e=e.childContextTypes,e!=null}function vi(){ie(Ue),ie(Oe)}function sd(e,t,n){if(Oe.current!==Mn)throw Error(A(168));re(Oe,t),re(Ue,n)}function Qp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Cv(e)||"Unknown",o));return de({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,nr=Oe.current,re(Oe,e),re(Ue,Ue.current),!0}function id(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Qp(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ue),ie(Oe),re(Oe,e)):ie(Ue),re(Ue,n)}var $t=null,Wi=!1,Ml=!1;function Gp(e){$t===null?$t=[e]:$t.push(e)}function zy(e){Wi=!0,Gp(e)}function Dn(){if(!Ml&&$t!==null){Ml=!0;var e=0,t=ee;try{var n=$t;for(ee=1;e>=i,o-=i,Ut=1<<32-xt(t)+o|n<j?(_=k,k=null):_=k.sibling;var M=g(m,k,v[j],C);if(M===null){k===null&&(k=_);break}e&&k&&M.alternate===null&&t(m,k),h=s(M,h,j),E===null?b=M:E.sibling=M,E=M,k=_}if(j===v.length)return n(m,k),ae&&Vn(m,j),b;if(k===null){for(;jj?(_=k,k=null):_=k.sibling;var $=g(m,k,M.value,C);if($===null){k===null&&(k=_);break}e&&k&&$.alternate===null&&t(m,k),h=s($,h,j),E===null?b=$:E.sibling=$,E=$,k=_}if(M.done)return n(m,k),ae&&Vn(m,j),b;if(k===null){for(;!M.done;j++,M=v.next())M=p(m,M.value,C),M!==null&&(h=s(M,h,j),E===null?b=M:E.sibling=M,E=M);return ae&&Vn(m,j),b}for(k=r(m,k);!M.done;j++,M=v.next())M=f(k,m,j,M.value,C),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?j:M.key),h=s(M,h,j),E===null?b=M:E.sibling=M,E=M);return e&&k.forEach(function(F){return t(m,F)}),ae&&Vn(m,j),b}function w(m,h,v,C){if(typeof v=="object"&&v!==null&&v.type===Cr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ks:e:{for(var b=v.key,E=h;E!==null;){if(E.key===b){if(b=v.type,b===Cr){if(E.tag===7){n(m,E.sibling),h=o(E,v.props.children),h.return=m,m=h;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===un&&ud(b)===E.type){n(m,E.sibling),h=o(E,v.props),h.ref=wo(m,E,v),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}v.type===Cr?(h=tr(v.props.children,m.mode,C,v.key),h.return=m,m=h):(C=ri(v.type,v.key,v.props,null,m.mode,C),C.ref=wo(m,h,v),C.return=m,m=C)}return i(m);case wr:e:{for(E=v.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=$l(v,m.mode,C),h.return=m,m=h}return i(m);case un:return E=v._init,w(m,h,E(v._payload),C)}if(No(v))return S(m,h,v,C);if(mo(v))return y(m,h,v,C);Is(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=Dl(v,m.mode,C),h.return=m,m=h),i(m)):n(m,h)}return w}var Zr=Zp(!0),Jp=Zp(!1),Ci=zn(null),Si=null,Tr=null,Tu=null;function Au(){Tu=Tr=Si=null}function Ru(e){var t=Ci.current;ie(Ci),e._currentValue=t}function Ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ir(e,t){Si=e,Tu=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Tu!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(Si===null)throw Error(A(308));Tr=e,Si.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Kn=null;function Mu(e){Kn===null?Kn=[e]:Kn.push(e)}function eh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function th(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qt(e,n)}return o=r.interleaved,o===null?(t.next=t,Mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qt(e,n)}function qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yu(e,n)}}function cd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bi(e,t,n,r){var o=e.updateQueue;cn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,d=u=a=null,l=s;do{var g=l.lane,f=l.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(g=t,f=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){p=S.call(f,p,g);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,g=typeof S=="function"?S.call(f,p,g):S,g==null)break e;p=de({},p,g);break e;case 2:cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else f={eventTime:f,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,a=p):d=d.next=f,i|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);sr|=i,e.lanes=i,e.memoizedState=p}}function dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=_l.transition;_l.transition={};try{e(!1),t()}finally{ee=n,_l.transition=r}}function yh(){return at().memoizedState}function Uy(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xh(e))wh(t,n);else if(n=eh(e,t,n,r),n!==null){var o=Ie();wt(n,e,r,o),Ch(n,t,r)}}function Vy(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xh(e))wh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ct(l,i)){var a=t.interleaved;a===null?(o.next=o,Mu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=eh(e,t,o,r),n!==null&&(o=Ie(),wt(n,e,r,o),Ch(n,t,r))}}function xh(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function wh(e,t){_o=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ch(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yu(e,n)}}var Ni={readContext:lt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Wy={readContext:lt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Js(4194308,4,ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Js(4194308,4,e,t)},useInsertionEffect:function(e,t){return Js(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Uy.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:fd,useDebugValue:Bu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=fd(!1),t=e[0];return e=By.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Nt();if(ae){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),be===null)throw Error(A(349));or&30||sh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,pd(lh.bind(null,r,s,e),[e]),r.flags|=2048,es(9,ih.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Nt(),t=be.identifierPrefix;if(ae){var n=Vt,r=Ut;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[At]=t,e[Xo]=r,Rh(e,t,!1,!1),t.stateNode=e;e:{switch(i=ia(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oto&&(t.flags|=128,r=!0,Co(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Co(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ae)return Ae(t),null}else 2*he()-s.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,Co(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=he(),t.sibling=null,n=ue.current,re(ue,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return Qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Zy(e,t){switch(Pu(t),t.tag){case 1:return Ve(t.type)&&vi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),ie(Ue),ie(Oe),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lu(t),null;case 13:if(ie(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ue),null;case 4:return Jr(),null;case 10:return Ru(t.type._context),null;case 22:case 23:return Qu(),null;case 24:return null;default:return null}}var zs=!1,Me=!1,Jy=typeof WeakSet=="function"?WeakSet:Set,I=null;function Ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Ed=!1;function e0(e,t){if(ga=pi,e=zp(),ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=i),g===s&&++d===r&&(a=i),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(va={focusedElem:e,selectionRange:n},pi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,w=S.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:ht(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(C){pe(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return S=Ed,Ed=!1,S}function Lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Oa(t,n,s)}o=o.next}while(o!==r)}}function Qi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _a(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Xo],delete t[wa],delete t[Iy],delete t[Fy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Lh(e){return e.tag===5||e.tag===3||e.tag===4}function kd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function La(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gi));else if(r!==4&&(e=e.child,e!==null))for(La(e,t,n),e=e.sibling;e!==null;)La(e,t,n),e=e.sibling}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var ke=null,vt=!1;function on(e,t,n){for(n=n.child;n!==null;)Ih(e,t,n),n=n.sibling}function Ih(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:Me||Ar(n,t);case 6:var r=ke,o=vt;ke=null,on(e,t,n),ke=r,vt=o,ke!==null&&(vt?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(vt?(e=ke,n=n.stateNode,e.nodeType===8?Rl(e.parentNode,n):e.nodeType===1&&Rl(e,n),Wo(e)):Rl(ke,n.stateNode));break;case 4:r=ke,o=vt,ke=n.stateNode.containerInfo,vt=!0,on(e,t,n),ke=r,vt=o;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Oa(n,t,i),o=o.next}while(o!==r)}on(e,t,n);break;case 1:if(!Me&&(Ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){pe(n,t,l)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,on(e,t,n),Me=r):on(e,t,n);break;default:on(e,t,n)}}function Nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jy),t.forEach(function(r){var o=u0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n0(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Ti=0,Z&6)throw Error(A(331));var o=Z;for(Z|=4,I=e.current;I!==null;){var s=I,i=s.child;if(I.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ahe()-Hu?er(e,0):Wu|=n),We(e,t)}function Wh(e,t){t===0&&(e.mode&1?(t=Ts,Ts<<=1,!(Ts&130023424)&&(Ts=4194304)):t=1);var n=Ie();e=Qt(e,t),e!==null&&(fs(e,t,n),We(e,n))}function a0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wh(e,n)}function u0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Wh(e,n)}var Hh;Hh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Yy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ae&&t.flags&1048576&&Xp(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ei(e,t),e=t.pendingProps;var o=Yr(t,Oe.current);Ir(t,n),o=zu(null,t,r,e,o,n);var s=Du();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(s=!0,yi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ou(t),o.updater=Ki,t.stateNode=o,o._reactInternals=t,Na(t,r,e,n),t=Ta(null,t,r,!0,s,n)):(t.tag=0,ae&&s&&Nu(t),_e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ei(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=d0(r),e=ht(r,e),o){case 0:t=ja(null,t,r,e,n);break e;case 1:t=Cd(null,t,r,e,n);break e;case 11:t=xd(null,t,r,e,n);break e;case 14:t=wd(null,t,r,ht(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),ja(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Cd(e,t,r,o,n);case 3:e:{if(jh(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,th(e,t),bi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=eo(Error(A(423)),t),t=Sd(e,t,r,n,o);break e}else if(r!==o){o=eo(Error(A(424)),t),t=Sd(e,t,r,n,o);break e}else for(Xe=kn(t.stateNode.containerInfo.firstChild),Ye=t,ae=!0,yt=null,n=Jp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qr(),r===o){t=Gt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return nh(t),e===null&&ba(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ya(r,o)?i=null:s!==null&&ya(r,s)&&(t.flags|=32),Ph(e,t),_e(e,t,i,n),t.child;case 6:return e===null&&ba(t),null;case 13:return Th(e,t,n);case 4:return _u(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),xd(e,t,r,o,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,re(Ci,r._currentValue),r._currentValue=i,s!==null)if(Ct(s.value,i)){if(s.children===o.children&&!Ue.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Wt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ea(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(A(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ea(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}_e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ir(t,n),o=lt(o),r=r(o),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),wd(e,t,r,o,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),ei(e,t),t.tag=1,Ve(r)?(e=!0,yi(t)):e=!1,Ir(t,n),Sh(t,r,o),Na(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return Ah(e,t,n);case 22:return Nh(e,t,n)}throw Error(A(156,t.tag))};function Kh(e,t){return xp(e,t)}function c0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new c0(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d0(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hu)return 11;if(e===mu)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ri(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Xu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cr:return tr(n.children,o,s,t);case pu:i=8,o|=8;break;case Yl:return e=st(12,n,t,o|2),e.elementType=Yl,e.lanes=s,e;case ql:return e=st(13,n,t,o),e.elementType=ql,e.lanes=s,e;case Zl:return e=st(19,n,t,o),e.elementType=Zl,e.lanes=s,e;case np:return Xi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ep:i=10;break e;case tp:i=9;break e;case hu:i=11;break e;case mu:i=14;break e;case un:i=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function tr(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Xi(e,t,n,r){return e=st(22,e,r,t),e.elementType=np,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function f0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,o,s,i,l,a){return e=new f0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(s),e}function p0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yh)}catch(e){console.error(e)}}Yh(),Yf.exports=Je;var gs=Yf.exports;const qh=Ff(gs);var Zh,_d=gs;Zh=_d.createRoot,_d.hydrateRoot;const y0=1,x0=1e6;let Bl=0;function w0(){return Bl=(Bl+1)%Number.MAX_SAFE_INTEGER,Bl.toString()}const Ul=new Map,Ld=e=>{if(Ul.has(e))return;const t=setTimeout(()=>{Ul.delete(e),zo({type:"REMOVE_TOAST",toastId:e})},x0);Ul.set(e,t)},C0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,y0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ld(n):e.toasts.forEach(r=>{Ld(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},oi=[];let si={toasts:[]};function zo(e){si=C0(si,e),oi.forEach(t=>{t(si)})}function S0({...e}){const t=w0(),n=o=>zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>zo({type:"DISMISS_TOAST",toastId:t});return zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function b0(){const[e,t]=x.useState(si);return x.useEffect(()=>(oi.push(t),()=>{const n=oi.indexOf(t);n>-1&&oi.splice(n,1)}),[e]),{...e,toast:S0,dismiss:n=>zo({type:"DISMISS_TOAST",toastId:n})}}function xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Id(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...S}=p,y=((m=g==null?void 0:g[e])==null?void 0:m[a])||l,w=x.useMemo(()=>S,Object.values(S));return c.jsx(y.Provider,{value:w,children:f})};u.displayName=s+"Provider";function d(p,g){var y;const f=((y=g==null?void 0:g[e])==null?void 0:y[a])||l,S=x.useContext(f);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>x.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,E0(o,...t)]}function E0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ba(e){const t=k0(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,l=x.Children.toArray(s),a=l.find(P0);if(a){const u=a.props.children,d=l.map(p=>p===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function k0(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=T0(o),l=j0(s,o.props);return o.type!==x.Fragment&&(l.ref=r?Jh(r,i):i),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var em=Symbol("radix.slottable");function N0(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=em,t}function P0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===em}function j0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function T0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function A0(e){const t=e+"CollectionProvider",[n,r]=el(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:w,children:m}=y,h=R.useRef(null),v=R.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};i.displayName=t;const l=e+"CollectionSlot",a=Ba(l),u=R.forwardRef((y,w)=>{const{scope:m,children:h}=y,v=s(l,m),C=St(w,v.collectionRef);return c.jsx(a,{ref:C,children:h})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ba(d),f=R.forwardRef((y,w)=>{const{scope:m,children:h,...v}=y,C=R.useRef(null),b=St(w,C),E=s(d,m);return R.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),c.jsx(g,{[p]:"",ref:b,children:h})});f.displayName=d;function S(y){const w=s(e+"CollectionConsumer",y);return R.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((E,k)=>v.indexOf(E.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},S,r]}var R0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=R0.reduce((e,t)=>{const n=Ba(`Primitive.${t}`),r=x.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tm(e,t){e&&gs.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function M0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var O0="DismissableLayer",Ua="dismissableLayer.update",_0="dismissableLayer.pointerDownOutside",L0="dismissableLayer.focusOutside",Fd,nm=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ec=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,u=x.useContext(nm),[d,p]=x.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),S=St(t,k=>p(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(w),h=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,C=h>=m,b=F0(k=>{const j=k.target,_=[...u.branches].some(M=>M.contains(j));!C||_||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},g),E=z0(k=>{const j=k.target;[...u.branches].some(M=>M.contains(j))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},g);return M0(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},g),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fd=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fd)}},[d,g,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zd())},[d,u]),x.useEffect(()=>{const k=()=>f({});return document.addEventListener(Ua,k),()=>document.removeEventListener(Ua,k)},[]),c.jsx(He.div,{...a,ref:S,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,b.onPointerDownCapture)})});ec.displayName=O0;var I0="DismissableLayerBranch",rm=x.forwardRef((e,t)=>{const n=x.useContext(nm),r=x.useRef(null),o=St(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(He.div,{...e,ref:o})});rm.displayName=I0;function F0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){om(_0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function z0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!r.current&&om(L0,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zd(){const e=new CustomEvent(Ua);document.dispatchEvent(e)}function om(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?tm(o,s):o.dispatchEvent(s)}var D0=ec,$0=rm,_n=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},B0="Portal",sm=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=x.useState(!1);_n(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?qh.createPortal(c.jsx(He.div,{...r,ref:t}),i):null});sm.displayName=B0;function U0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var tc=e=>{const{present:t,children:n}=e,r=V0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=St(r.ref,W0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:s}):null};tc.displayName="Presence";function V0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),i=e?"mounted":"unmounted",[l,a]=U0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Bs(r.current);s.current=l==="mounted"?u:"none"},[l]),_n(()=>{const u=r.current,d=o.current;if(d!==e){const g=s.current,f=Bs(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_n(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const y=Bs(r.current).includes(f.animationName);if(f.target===t&&y&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=f=>{f.target===t&&(s.current=Bs(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Bs(e){return(e==null?void 0:e.animationName)||"none"}function W0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H0=Gf[" useInsertionEffect ".trim().toString()]||_n;function K0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Q0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=x.useCallback(d=>{var p;if(l){const g=G0(d)?d(e):d;g!==e&&((p=i.current)==null||p.call(i,g))}else s(d)},[l,e,s,i]);return[a,u]}function Q0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),s=x.useRef(t);return H0(()=>{s.current=t},[t]),x.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function G0(e){return typeof e=="function"}var X0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Y0="VisuallyHidden",tl=x.forwardRef((e,t)=>c.jsx(He.span,{...e,ref:t,style:{...X0,...e.style}}));tl.displayName=Y0;var q0=tl,nc="ToastProvider",[rc,Z0,J0]=A0("Toast"),[im,GS]=el("Toast",[J0]),[ex,nl]=im(nc),lm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,a]=x.useState(null),[u,d]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${nc}\`. Expected non-empty \`string\`.`),c.jsx(rc.Provider,{scope:t,children:c.jsx(ex,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:i})})};lm.displayName=nc;var am="ToastViewport",tx=["F8"],Va="toast.viewportPause",Wa="toast.viewportResume",um=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tx,label:o="Notifications ({hotkey})",...s}=e,i=nl(am,n),l=Z0(n),a=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),g=St(t,p,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(C=>m[C]||m.code===C)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,m=p.current;if(S&&w&&m){const h=()=>{if(!i.isClosePausedRef.current){const E=new CustomEvent(Va);m.dispatchEvent(E),i.isClosePausedRef.current=!0}},v=()=>{if(i.isClosePausedRef.current){const E=new CustomEvent(Wa);m.dispatchEvent(E),i.isClosePausedRef.current=!1}},C=E=>{!w.contains(E.relatedTarget)&&v()},b=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",C),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",b),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",b),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[S,i.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const h=l().map(v=>{const C=v.ref.current,b=[C,...hx(C)];return w==="forwards"?b:b.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return x.useEffect(()=>{const w=p.current;if(w){const m=h=>{var b,E,k;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const j=document.activeElement,_=h.shiftKey;if(h.target===w&&_){(b=u.current)==null||b.focus();return}const F=y({tabbingDirection:_?"backwards":"forwards"}),K=F.findIndex(O=>O===j);Vl(F.slice(K+1))?h.preventDefault():_?(E=u.current)==null||E.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,y]),c.jsxs($0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&c.jsx(Ha,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Vl(w)}}),c.jsx(rc.Slot,{scope:n,children:c.jsx(He.ol,{tabIndex:-1,...s,ref:g})}),S&&c.jsx(Ha,{ref:d,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Vl(w)}})]})});um.displayName=am;var cm="ToastFocusProxy",Ha=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=nl(cm,n);return c.jsx(tl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});Ha.displayName=cm;var vs="Toast",nx="toast.swipeStart",rx="toast.swipeMove",ox="toast.swipeCancel",sx="toast.swipeEnd",dm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l,a]=K0({prop:r,defaultProp:o??!0,onChange:s,caller:vs});return c.jsx(tc,{present:n||l,children:c.jsx(ax,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:xe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:xe(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:xe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:xe(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});dm.displayName=vs;var[ix,lx]=im(vs,{onClose(){}}),ax=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...S}=e,y=nl(vs,n),[w,m]=x.useState(null),h=St(t,O=>m(O)),v=x.useRef(null),C=x.useRef(null),b=o||y.duration,E=x.useRef(0),k=x.useRef(b),j=x.useRef(0),{onToastAdd:_,onToastRemove:M}=y,$=On(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=y.viewport)==null||X.focus()),i()}),F=x.useCallback(O=>{!O||O===1/0||(window.clearTimeout(j.current),E.current=new Date().getTime(),j.current=window.setTimeout($,O))},[$]);x.useEffect(()=>{const O=y.viewport;if(O){const X=()=>{F(k.current),u==null||u()},B=()=>{const V=new Date().getTime()-E.current;k.current=k.current-V,window.clearTimeout(j.current),a==null||a()};return O.addEventListener(Va,B),O.addEventListener(Wa,X),()=>{O.removeEventListener(Va,B),O.removeEventListener(Wa,X)}}},[y.viewport,b,a,u,F]),x.useEffect(()=>{s&&!y.isClosePausedRef.current&&F(b)},[s,b,y.isClosePausedRef,F]),x.useEffect(()=>(_(),()=>M()),[_,M]);const K=x.useMemo(()=>w?ym(w):null,[w]);return y.viewport?c.jsxs(c.Fragment,{children:[K&&c.jsx(ux,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),c.jsx(ix,{scope:n,onClose:$,children:gs.createPortal(c.jsx(rc.ItemSlot,{scope:n,children:c.jsx(D0,{asChild:!0,onEscapeKeyDown:xe(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:xe(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:xe(e.onPointerDown,O=>{O.button===0&&(v.current={x:O.clientX,y:O.clientY})}),onPointerMove:xe(e.onPointerMove,O=>{if(!v.current)return;const X=O.clientX-v.current.x,B=O.clientY-v.current.y,V=!!C.current,P=["left","right"].includes(y.swipeDirection),T=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=P?T(0,X):0,W=P?0:T(0,B),z=O.pointerType==="touch"?10:2,Q={x:L,y:W},Y={originalEvent:O,delta:Q};V?(C.current=Q,Us(rx,p,Y,{discrete:!1})):Dd(Q,y.swipeDirection,z)?(C.current=Q,Us(nx,d,Y,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(X)>z||Math.abs(B)>z)&&(v.current=null)}),onPointerUp:xe(e.onPointerUp,O=>{const X=C.current,B=O.target;if(B.hasPointerCapture(O.pointerId)&&B.releasePointerCapture(O.pointerId),C.current=null,v.current=null,X){const V=O.currentTarget,P={originalEvent:O,delta:X};Dd(X,y.swipeDirection,y.swipeThreshold)?Us(sx,f,P,{discrete:!0}):Us(ox,g,P,{discrete:!0}),V.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),ux=e=>{const{__scopeToast:t,children:n,...r}=e,o=nl(vs,t),[s,i]=x.useState(!1),[l,a]=x.useState(!1);return fx(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.jsx(sm,{asChild:!0,children:c.jsx(tl,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},cx="ToastTitle",fm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});fm.displayName=cx;var dx="ToastDescription",pm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});pm.displayName=dx;var hm="ToastAction",mm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(vm,{altText:n,asChild:!0,children:c.jsx(oc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${hm}\`. Expected non-empty \`string\`.`),null)});mm.displayName=hm;var gm="ToastClose",oc=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=lx(gm,n);return c.jsx(vm,{asChild:!0,children:c.jsx(He.button,{type:"button",...r,ref:t,onClick:xe(e.onClick,o.onClose)})})});oc.displayName=gm;var vm=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function ym(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),px(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...ym(r))}}),t}function Us(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?tm(o,s):o.dispatchEvent(s)}var Dd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function fx(e=()=>{}){const t=On(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function px(e){return e.nodeType===e.ELEMENT_NODE}function hx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var mx=lm,xm=um,wm=dm,Cm=fm,Sm=pm,bm=mm,Em=oc;function km(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Bd=Nm,gx=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Bd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const g=$d(d)||$d(p);return o[u][g]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(S=>{let[y,w]=S;return Array.isArray(w)?w.includes({...s,...l}[y]):{...s,...l}[y]===w})?[...u,p,g]:u},[]);return Bd(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var yx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>x.createElement("svg",{ref:a,...yx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Pm("lucide",o),...l},[...i.map(([u,d])=>x.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ne=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement(xx,{ref:s,iconNode:t,className:Pm(`lucide-${vx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jm=ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wx=ne("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cx=ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sx=ne("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bx=ne("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ex=ne("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kx=ne("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ud=ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nx=ne("Construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Px=ne("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vd=ne("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jx=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tx=ne("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ax=ne("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rx=ne("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mx=ne("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=ne("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wl=ne("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _x=ne("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=ne("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=ne("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fx=ne("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zx=ne("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=ne("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $x=ne("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bx=ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tm=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),sc="-",Ux=e=>{const t=Wx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(sc);return l[0]===""&&l.length!==1&&l.shift(),Am(l,t)||Vx(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},Am=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Am(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(sc);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Wd=/^\[(.+)\]$/,Vx=e=>{if(Wd.test(e)){const t=Wd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Wx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Kx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ka(i,r,s,t)}),r},Ka=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Hd(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Hx(o)){Ka(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ka(i,Hd(t,s),n,r)})})},Hd=(e,t)=>{let n=e;return t.split(sc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Hx=e=>e.isThemeGetter,Kx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,Qx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Rm="!",Gx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let u=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:S,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:i}):i},Xx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Yx=e=>({cache:Qx(e.cacheSize),parseClassName:Gx(e),...Ux(e)}),qx=/\s+/,Zx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(qx);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let S=!!f,y=r(S?g.substring(0,f):g);if(!y){if(!S){l=u+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=u+(l.length>0?" "+l:l);continue}S=!1}const w=Xx(d).join(":"),m=p?w+Rm:w,h=m+y;if(s.includes(h))continue;s.push(h);const v=o(y,S);for(let C=0;C0?" "+l:l)}return l};function Jx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=Yx(u),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=Zx(a,n);return o(a,d),d}return function(){return s(Jx.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Om=/^\[(?:([a-z-]+):)?(.+)\]$/i,tw=/^\d+\/\d+$/,nw=new Set(["px","full","screen"]),rw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ow=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,iw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ft=e=>zr(e)||nw.has(e)||tw.test(e),sn=e=>lo(e,"length",mw),zr=e=>!!e&&!Number.isNaN(Number(e)),Hl=e=>lo(e,"number",zr),bo=e=>!!e&&Number.isInteger(Number(e)),aw=e=>e.endsWith("%")&&zr(e.slice(0,-1)),H=e=>Om.test(e),ln=e=>rw.test(e),uw=new Set(["length","size","percentage"]),cw=e=>lo(e,uw,_m),dw=e=>lo(e,"position",_m),fw=new Set(["image","url"]),pw=e=>lo(e,fw,vw),hw=e=>lo(e,"",gw),Eo=()=>!0,lo=(e,t,n)=>{const r=Om.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mw=e=>ow.test(e)&&!sw.test(e),_m=()=>!1,gw=e=>iw.test(e),vw=e=>lw.test(e),yw=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),s=oe("borderRadius"),i=oe("borderSpacing"),l=oe("borderWidth"),a=oe("contrast"),u=oe("grayscale"),d=oe("hueRotate"),p=oe("invert"),g=oe("gap"),f=oe("gradientColorStops"),S=oe("gradientColorStopPositions"),y=oe("inset"),w=oe("margin"),m=oe("opacity"),h=oe("padding"),v=oe("saturate"),C=oe("scale"),b=oe("sepia"),E=oe("skew"),k=oe("space"),j=oe("translate"),_=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",H,t],F=()=>[H,t],K=()=>["",Ft,sn],O=()=>["auto",zr,H],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",H],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[zr,H];return{cacheSize:500,separator:":",theme:{colors:[Eo],spacing:[Ft,sn],blur:["none","",ln,H],brightness:W(),borderColor:[e],borderRadius:["none","","full",ln,H],borderSpacing:F(),borderWidth:K(),contrast:W(),grayscale:T(),hueRotate:W(),invert:T(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[aw,sn],inset:$(),margin:$(),opacity:W(),padding:F(),saturate:W(),scale:W(),sepia:T(),skew:W(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),H]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo,H]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",bo,H]}],"grid-cols":[{"grid-cols":[Eo]}],"col-start-end":[{col:["auto",{span:["full",bo,H]},H]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Eo]}],"row-start-end":[{row:["auto",{span:[bo,H]},H]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hl]}],"font-family":[{font:[Eo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",zr,Hl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ft,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ft,sn]}],"underline-offset":[{"underline-offset":["auto",Ft,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),dw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Ft,H]}],"outline-w":[{outline:[Ft,sn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ft,sn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,hw]}],"shadow-color":[{shadow:[Eo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",ln,H]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[bo,H]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ft,sn,Hl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xw=ew(yw);function cr(...e){return xw(Nm(e))}const ww=mx,Lm=x.forwardRef(({className:e,...t},n)=>c.jsx(xm,{ref:n,className:cr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Lm.displayName=xm.displayName;const Cw=gx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Im=x.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(wm,{ref:r,className:cr(Cw({variant:t}),e),...n}));Im.displayName=wm.displayName;const Sw=x.forwardRef(({className:e,...t},n)=>c.jsx(bm,{ref:n,className:cr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Sw.displayName=bm.displayName;const Fm=x.forwardRef(({className:e,...t},n)=>c.jsx(Em,{ref:n,className:cr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Tm,{className:"h-4 w-4"})}));Fm.displayName=Em.displayName;const zm=x.forwardRef(({className:e,...t},n)=>c.jsx(Cm,{ref:n,className:cr("text-sm font-semibold",e),...t}));zm.displayName=Cm.displayName;const Dm=x.forwardRef(({className:e,...t},n)=>c.jsx(Sm,{ref:n,className:cr("text-sm opacity-90",e),...t}));Dm.displayName=Sm.displayName;function bw(){const{toasts:e}=b0();return c.jsxs(ww,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(Im,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(zm,{children:n}),r&&c.jsx(Dm,{children:r})]}),o,c.jsx(Fm,{})]},t)}),c.jsx(Lm,{})]})}var Kd=["light","dark"],Ew="(prefers-color-scheme: dark)",kw=x.createContext(void 0),Nw={setTheme:e=>{},themes:[]},Pw=()=>{var e;return(e=x.useContext(kw))!=null?e:Nw};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Kd.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(S,y=!1,w=!0)=>{let m=i?i[S]:S,h=y?S+"|| ''":`'${m}'`,v="";return o&&w&&!y&&Kd.includes(S)&&(v+=`d.style.colorScheme = '${S}';`),n==="class"?y||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Ew}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${u?"":"else{"+g(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var jw=e=>{switch(e){case"success":return Rw;case"info":return Ow;case"warning":return Mw;case"error":return _w;default:return null}},Tw=Array(12).fill(0),Aw=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},Tw.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Rw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Mw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ow=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_w=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Lw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Iw=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Qa=1,Fw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Qa++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async a=>{if(s=["resolve",a],R.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(Dw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(s=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>i.then(()=>s[0]==="reject"?u(s[1]):a(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Qa++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=new Fw,zw=(e,t)=>{let n=(t==null?void 0:t.id)||Qa++;return De.addToast({title:e,...t,id:n}),n},Dw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",$w=zw,Bw=()=>De.toasts,Uw=()=>De.getActiveToasts();Object.assign($w,{success:De.success,info:De.info,warning:De.warning,error:De.error,custom:De.custom,message:De.message,promise:De.promise,dismiss:De.dismiss,loading:De.loading},{getHistory:Bw,getToasts:Uw});function Vw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Vw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Vs(e){return e.label!==void 0}var Ww=3,Hw="32px",Kw="16px",Qd=4e3,Qw=356,Gw=14,Xw=20,Yw=200;function pt(...e){return e.filter(Boolean).join(" ")}function qw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Zw=e=>{var t,n,r,o,s,i,l,a,u,d,p;let{invert:g,toast:f,unstyled:S,interacting:y,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:C,expanded:b,removeToast:E,defaultRichColors:k,closeButton:j,style:_,cancelButtonStyle:M,actionButtonStyle:$,className:F="",descriptionClassName:K="",duration:O,position:X,gap:B,loadingIcon:V,expandByDefault:P,classNames:T,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:z}=e,[Q,Y]=R.useState(null),[me,je]=R.useState(null),[J,pr]=R.useState(!1),[Zt,$n]=R.useState(!1),[Jt,hr]=R.useState(!1),[en,ws]=R.useState(!1),[cl,Cs]=R.useState(!1),[dl,po]=R.useState(0),[mr,xc]=R.useState(0),ho=R.useRef(f.duration||O||Qd),wc=R.useRef(null),Bn=R.useRef(null),Fg=v===0,zg=v+1<=m,tt=f.type,gr=f.dismissible!==!1,Dg=f.className||"",$g=f.descriptionClassName||"",Ss=R.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),Bg=R.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:j},[f.closeButton,j]),Cc=R.useMemo(()=>f.duration||O||Qd,[f.duration,O]),fl=R.useRef(0),vr=R.useRef(0),Sc=R.useRef(0),yr=R.useRef(null),[Ug,Vg]=X.split("-"),bc=R.useMemo(()=>h.reduce((U,te,le)=>le>=Ss?U:U+te.height,0),[h,Ss]),Ec=Iw(),Wg=f.invert||g,pl=tt==="loading";vr.current=R.useMemo(()=>Ss*B+bc,[Ss,bc]),R.useEffect(()=>{ho.current=Cc},[Cc]),R.useEffect(()=>{pr(!0)},[]),R.useEffect(()=>{let U=Bn.current;if(U){let te=U.getBoundingClientRect().height;return xc(te),w(le=>[{toastId:f.id,height:te,position:f.position},...le]),()=>w(le=>le.filter(ut=>ut.toastId!==f.id))}},[w,f.id]),R.useLayoutEffect(()=>{if(!J)return;let U=Bn.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,xc(le),w(ut=>ut.find(ct=>ct.toastId===f.id)?ut.map(ct=>ct.toastId===f.id?{...ct,height:le}:ct):[{toastId:f.id,height:le,position:f.position},...ut])},[J,f.title,f.description,w,f.id]);let tn=R.useCallback(()=>{$n(!0),po(vr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{E(f)},Yw)},[f,E,w,vr]);R.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return b||y||z&&Ec?(()=>{if(Sc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),tn()},ho.current)),()=>clearTimeout(U)},[b,y,f,tt,z,Ec,tn]),R.useEffect(()=>{f.delete&&tn()},[tn,f.delete]);function Hg(){var U,te,le;return L!=null&&L.loading?R.createElement("div",{className:pt(T==null?void 0:T.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},L.loading):V?R.createElement("div",{className:pt(T==null?void 0:T.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":tt==="loading"},V):R.createElement(Aw,{className:pt(T==null?void 0:T.loader,(le=f==null?void 0:f.classNames)==null?void 0:le.loader),visible:tt==="loading"})}return R.createElement("li",{tabIndex:0,ref:Bn,className:pt(F,Dg,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||S),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":cl,"data-removed":Zt,"data-visible":zg,"data-y-position":Ug,"data-x-position":Vg,"data-index":v,"data-front":Fg,"data-swiping":Jt,"data-dismissible":gr,"data-type":tt,"data-invert":Wg,"data-swipe-out":en,"data-swipe-direction":me,"data-expanded":!!(b||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${Zt?dl:vr.current}px`,"--initial-height":P?"auto":`${mr}px`,..._,...f.style},onDragEnd:()=>{hr(!1),Y(null),yr.current=null},onPointerDown:U=>{pl||!gr||(wc.current=new Date,po(vr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(hr(!0),yr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,ut;if(en||!gr)return;yr.current=null;let ct=Number(((U=Bn.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nn=Number(((te=Bn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Un=new Date().getTime()-((le=wc.current)==null?void 0:le.getTime()),dt=Q==="x"?ct:nn,rn=Math.abs(dt)/Un;if(Math.abs(dt)>=Xw||rn>.11){po(vr.current),(ut=f.onDismiss)==null||ut.call(f,f),je(Q==="x"?ct>0?"right":"left":nn>0?"down":"up"),tn(),ws(!0),Cs(!1);return}hr(!1),Y(null)},onPointerMove:U=>{var te,le,ut,ct;if(!yr.current||!gr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let nn=U.clientY-yr.current.y,Un=U.clientX-yr.current.x,dt=(le=e.swipeDirections)!=null?le:qw(X);!Q&&(Math.abs(Un)>1||Math.abs(nn)>1)&&Y(Math.abs(Un)>Math.abs(nn)?"x":"y");let rn={x:0,y:0};Q==="y"?(dt.includes("top")||dt.includes("bottom"))&&(dt.includes("top")&&nn<0||dt.includes("bottom")&&nn>0)&&(rn.y=nn):Q==="x"&&(dt.includes("left")||dt.includes("right"))&&(dt.includes("left")&&Un<0||dt.includes("right")&&Un>0)&&(rn.x=Un),(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&Cs(!0),(ut=Bn.current)==null||ut.style.setProperty("--swipe-amount-x",`${rn.x}px`),(ct=Bn.current)==null||ct.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},Bg&&!f.jsx?R.createElement("button",{"aria-label":W,"data-disabled":pl,"data-close-button":!0,onClick:pl||!gr?()=>{}:()=>{var U;tn(),(U=f.onDismiss)==null||U.call(f,f)},className:pt(T==null?void 0:T.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:Lw):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,tt||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:pt(T==null?void 0:T.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Hg():null,f.type!=="loading"?f.icon||(L==null?void 0:L[tt])||jw(tt):null):null,R.createElement("div",{"data-content":"",className:pt(T==null?void 0:T.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},R.createElement("div",{"data-title":"",className:pt(T==null?void 0:T.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:pt(K,$g,T==null?void 0:T.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Vs(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:U=>{var te,le;Vs(f.cancel)&&gr&&((le=(te=f.cancel).onClick)==null||le.call(te,U),tn())},className:pt(T==null?void 0:T.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Vs(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:U=>{var te,le;Vs(f.action)&&((le=(te=f.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&tn())},className:pt(T==null?void 0:T.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Gd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Jw(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",l=s?Kw:Hw;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var e1=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:S=Ww,toastOptions:y,dir:w=Gd(),gap:m=Gw,loadingIcon:h,icons:v,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:b}=e,[E,k]=R.useState([]),j=R.useMemo(()=>Array.from(new Set([r].concat(E.filter(z=>z.position).map(z=>z.position)))),[E,r]),[_,M]=R.useState([]),[$,F]=R.useState(!1),[K,O]=R.useState(!1),[X,B]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=R.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=R.useRef(null),L=R.useRef(!1),W=R.useCallback(z=>{k(Q=>{var Y;return(Y=Q.find(me=>me.id===z.id))!=null&&Y.delete||De.dismiss(z.id),Q.filter(({id:me})=>me!==z.id)})},[]);return R.useEffect(()=>De.subscribe(z=>{if(z.dismiss){k(Q=>Q.map(Y=>Y.id===z.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{qh.flushSync(()=>{k(Q=>{let Y=Q.findIndex(me=>me.id===z.id);return Y!==-1?[...Q.slice(0,Y),{...Q[Y],...z},...Q.slice(Y+1)]:[z,...Q]})})})}),[]),R.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Q})=>{B(Q?"dark":"light")})}catch{z.addListener(({matches:Y})=>{try{B(Y?"dark":"light")}catch(me){console.error(me)}})}},[d]),R.useEffect(()=>{E.length<=1&&F(!1)},[E]),R.useEffect(()=>{let z=Q=>{var Y,me;o.every(je=>Q[je]||Q.code===je)&&(F(!0),(Y=V.current)==null||Y.focus()),Q.code==="Escape"&&(document.activeElement===V.current||(me=V.current)!=null&&me.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),R.useEffect(()=>{if(V.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,L.current=!1)}},[V.current]),R.createElement("section",{ref:t,"aria-label":`${C} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((z,Q)=>{var Y;let[me,je]=z.split("-");return E.length?R.createElement("ol",{key:z,dir:w==="auto"?Gd():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":me,"data-lifted":$&&E.length>1&&!s,"data-x-position":je,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${Qw}px`,"--gap":`${m}px`,...f,...Jw(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,T.current=J.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{K||F(!1)},onDragEnd:()=>F(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},E.filter(J=>!J.position&&Q===0||J.position===z).map((J,pr)=>{var Zt,$n;return R.createElement(Zw,{key:J.id,icons:v,index:pr,toast:J,defaultRichColors:p,duration:(Zt=y==null?void 0:y.duration)!=null?Zt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:S,closeButton:($n=y==null?void 0:y.closeButton)!=null?$n:i,interacting:K,position:z,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:W,toasts:E.filter(Jt=>Jt.position==J.position),heights:_.filter(Jt=>Jt.position==J.position),setHeights:M,expandByDefault:s,gap:m,loadingIcon:h,expanded:$,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const t1=({...e})=>{const{theme:t="system"}=Pw();return c.jsx(e1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},n1=["top","right","bottom","left"],Ln=Math.min,Ge=Math.max,Mi=Math.round,Ws=Math.floor,_t=e=>({x:e,y:e}),r1={left:"right",right:"left",bottom:"top",top:"bottom"},o1={start:"end",end:"start"};function Ga(e,t,n){return Ge(e,Ln(t,n))}function Xt(e,t){return typeof e=="function"?e(t):e}function Yt(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function ic(e){return e==="x"?"y":"x"}function lc(e){return e==="y"?"height":"width"}const s1=new Set(["top","bottom"]);function Rt(e){return s1.has(Yt(e))?"y":"x"}function ac(e){return ic(Rt(e))}function i1(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=ac(e),s=lc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Oi(i)),[i,Oi(i)]}function l1(e){const t=Oi(e);return[Xa(e),t,Xa(t)]}function Xa(e){return e.replace(/start|end/g,t=>o1[t])}const Xd=["left","right"],Yd=["right","left"],a1=["top","bottom"],u1=["bottom","top"];function c1(e,t,n){switch(e){case"top":case"bottom":return n?t?Yd:Xd:t?Xd:Yd;case"left":case"right":return t?a1:u1;default:return[]}}function d1(e,t,n,r){const o=ao(e);let s=c1(Yt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Xa)))),s}function Oi(e){return e.replace(/left|right|bottom|top/g,t=>r1[t])}function f1(e){return{top:0,right:0,bottom:0,left:0,...e}}function $m(e){return typeof e!="number"?f1(e):{top:e,right:e,bottom:e,left:e}}function _i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qd(e,t,n){let{reference:r,floating:o}=e;const s=Rt(t),i=ac(t),l=lc(i),a=Yt(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(ao(t)){case"start":f[i]-=g*(n&&u?-1:1);break;case"end":f[i]+=g*(n&&u?-1:1);break}return f}const p1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=qd(u,r,a),g=r,f={},S=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=Xt(e,t)||{};if(u==null)return{};const p=$m(d),g={x:n,y:r},f=ac(o),S=lc(f),y=await i.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",C=s.reference[S]+s.reference[f]-g[f]-s.floating[S],b=g[f]-s.reference[f],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=E?E[v]:0;(!k||!await(i.isElement==null?void 0:i.isElement(E)))&&(k=l.floating[v]||s.floating[S]);const j=C/2-b/2,_=k/2-y[S]/2-1,M=Ln(p[m],_),$=Ln(p[h],_),F=M,K=k-y[S]-$,O=k/2-y[S]/2+j,X=Ga(F,O,K),B=!a.arrow&&ao(o)!=null&&O!==X&&s.reference[S]/2-(OO<=0)){var $,F;const O=((($=s.flip)==null?void 0:$.index)||0)+1,X=k[O];if(X&&(!(p==="alignment"?h!==Rt(X):!1)||M.every(P=>P.overflows[0]>0&&Rt(P.placement)===h)))return{data:{index:O,overflows:M},reset:{placement:X}};let B=(F=M.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:F.placement;if(!B)switch(f){case"bestFit":{var K;const V=(K=M.filter(P=>{if(E){const T=Rt(P.placement);return T===h||T==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)]).sort((P,T)=>P[1]-T[1])[0])==null?void 0:K[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Zd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jd(e){return n1.some(t=>e[t]>=0)}const g1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const s=await ns(t,{...o,elementContext:"reference"}),i=Zd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Jd(i)}}}case"escaped":{const s=await ns(t,{...o,altBoundary:!0}),i=Zd(s,n.floating);return{data:{escapedOffsets:i,escaped:Jd(i)}}}default:return{}}}}},Bm=new Set(["left","top"]);async function v1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Yt(n),l=ao(n),a=Rt(n)==="y",u=Bm.has(i)?-1:1,d=s&&a?-1:1,p=Xt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof S=="number"&&(f=l==="end"?S*-1:S),a?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await v1(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},x1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...a}=Xt(e,t),u={x:n,y:r},d=await ns(t,a),p=Rt(Yt(o)),g=ic(p);let f=u[g],S=u[p];if(s){const w=g==="y"?"top":"left",m=g==="y"?"bottom":"right",h=f+d[w],v=f-d[m];f=Ga(h,f,v)}if(i){const w=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=S+d[w],v=S-d[m];S=Ga(h,S,v)}const y=l.fn({...t,[g]:f,[p]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:s,[p]:i}}}}}},w1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Xt(e,t),d={x:n,y:r},p=Rt(o),g=ic(p);let f=d[g],S=d[p];const y=Xt(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=g==="y"?"height":"width",C=s.reference[g]-s.floating[v]+w.mainAxis,b=s.reference[g]+s.reference[v]-w.mainAxis;fb&&(f=b)}if(u){var m,h;const v=g==="y"?"width":"height",C=Bm.has(Yt(o)),b=s.reference[p]-s.floating[v]+(C&&((m=i.offset)==null?void 0:m[p])||0)+(C?0:w.crossAxis),E=s.reference[p]+s.reference[v]+(C?0:((h=i.offset)==null?void 0:h[p])||0)-(C?w.crossAxis:0);SE&&(S=E)}return{[g]:f,[p]:S}}}},C1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=Xt(e,t),d=await ns(t,u),p=Yt(o),g=ao(o),f=Rt(o)==="y",{width:S,height:y}=s.floating;let w,m;p==="top"||p==="bottom"?(w=p,m=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(m=p,w=g==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=S-d.left-d.right,C=Ln(y-d[w],h),b=Ln(S-d[m],v),E=!t.middlewareData.shift;let k=C,j=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),E&&!g){const M=Ge(d.left,0),$=Ge(d.right,0),F=Ge(d.top,0),K=Ge(d.bottom,0);f?j=S-2*(M!==0||$!==0?M+$:Ge(d.left,d.right)):k=y-2*(F!==0||K!==0?F+K:Ge(d.top,d.bottom))}await a({...t,availableWidth:j,availableHeight:k});const _=await i.getDimensions(l.floating);return S!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function rl(){return typeof window<"u"}function uo(e){return Um(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(Um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Um(e){return rl()?e instanceof Node||e instanceof qe(e).Node:!1}function bt(e){return rl()?e instanceof Element||e instanceof qe(e).Element:!1}function Lt(e){return rl()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function ef(e){return!rl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const S1=new Set(["inline","contents"]);function ys(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!S1.has(o)}const b1=new Set(["table","td","th"]);function E1(e){return b1.has(uo(e))}const k1=[":popover-open",":modal"];function ol(e){return k1.some(t=>{try{return e.matches(t)}catch{return!1}})}const N1=["transform","translate","scale","rotate","perspective"],P1=["transform","translate","scale","rotate","perspective","filter"],j1=["paint","layout","strict","content"];function uc(e){const t=cc(),n=bt(e)?Et(e):e;return N1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||P1.some(r=>(n.willChange||"").includes(r))||j1.some(r=>(n.contain||"").includes(r))}function T1(e){let t=In(e);for(;Lt(t)&&!no(t);){if(uc(t))return t;if(ol(t))return null;t=In(t)}return null}function cc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const A1=new Set(["html","body","#document"]);function no(e){return A1.has(uo(e))}function Et(e){return qe(e).getComputedStyle(e)}function sl(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ef(e)&&e.host||It(e);return ef(t)?t.host:t}function Vm(e){const t=In(e);return no(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&ys(t)?t:Vm(t)}function rs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vm(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=qe(o);if(s){const l=Ya(i);return t.concat(i,i.visualViewport||[],ys(o)?o:[],l&&n?rs(l):[])}return t.concat(o,rs(o,[],n))}function Ya(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wm(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Mi(n)!==s||Mi(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function dc(e){return bt(e)?e:e.contextElement}function Dr(e){const t=dc(e);if(!Lt(t))return _t(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Wm(t);let i=(s?Mi(n.width):n.width)/r,l=(s?Mi(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const R1=_t(0);function Hm(e){const t=qe(e);return!cc()||!t.visualViewport?R1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=dc(e);let i=_t(1);t&&(r?bt(r)&&(i=Dr(r)):i=Dr(e));const l=M1(s,n,r)?Hm(s):_t(0);let a=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const g=qe(s),f=r&&bt(r)?qe(r):r;let S=g,y=Ya(S);for(;y&&r&&f!==S;){const w=Dr(y),m=y.getBoundingClientRect(),h=Et(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,C=m.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;a*=w.x,u*=w.y,d*=w.x,p*=w.y,a+=v,u+=C,S=qe(y),y=Ya(S)}}return _i({width:d,height:p,x:a,y:u})}function fc(e,t){const n=sl(e).scrollLeft;return t?t.left+n:lr(It(e)).left+n}function Km(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:fc(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function O1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=It(r),l=t?ol(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=_t(1);const d=_t(0),p=Lt(r);if((p||!p&&!s)&&((uo(r)!=="body"||ys(i))&&(a=sl(r)),Lt(r))){const f=lr(r);u=Dr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=i&&!p&&!s?Km(i,a,!0):_t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-a.scrollTop*u.y+d.y+g.y}}function _1(e){return Array.from(e.getClientRects())}function L1(e){const t=It(e),n=sl(e),r=e.ownerDocument.body,o=Ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+fc(e);const l=-n.scrollTop;return Et(r).direction==="rtl"&&(i+=Ge(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function I1(e,t){const n=qe(e),r=It(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const u=cc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}const F1=new Set(["absolute","fixed"]);function z1(e,t){const n=lr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Lt(e)?Dr(e):_t(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:l,x:a,y:u}}function tf(e,t,n){let r;if(t==="viewport")r=I1(e,n);else if(t==="document")r=L1(It(e));else if(bt(t))r=z1(t,n);else{const o=Hm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _i(r)}function Qm(e,t){const n=In(e);return n===t||!bt(n)||no(n)?!1:Et(n).position==="fixed"||Qm(n,t)}function D1(e,t){const n=t.get(e);if(n)return n;let r=rs(e,[],!1).filter(l=>bt(l)&&uo(l)!=="body"),o=null;const s=Et(e).position==="fixed";let i=s?In(e):e;for(;bt(i)&&!no(i);){const l=Et(i),a=uc(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&F1.has(o.position)||ys(i)&&!a&&Qm(e,i))?r=r.filter(d=>d!==i):o=l,i=In(i)}return t.set(e,r),r}function $1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ol(t)?[]:D1(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((u,d)=>{const p=tf(t,d,o);return u.top=Ge(p.top,u.top),u.right=Ln(p.right,u.right),u.bottom=Ln(p.bottom,u.bottom),u.left=Ge(p.left,u.left),u},tf(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function B1(e){const{width:t,height:n}=Wm(e);return{width:t,height:n}}function U1(e,t,n){const r=Lt(t),o=It(t),s=n==="fixed",i=lr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=_t(0);function u(){a.x=fc(o)}if(r||!r&&!s)if((uo(t)!=="body"||ys(o))&&(l=sl(t)),r){const f=lr(t,!0,s,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Km(o,l):_t(0),p=i.left+l.scrollLeft-a.x-d.x,g=i.top+l.scrollTop-a.y-d.y;return{x:p,y:g,width:i.width,height:i.height}}function Kl(e){return Et(e).position==="static"}function nf(e,t){if(!Lt(e)||Et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function Gm(e,t){const n=qe(e);if(ol(e))return n;if(!Lt(e)){let o=In(e);for(;o&&!no(o);){if(bt(o)&&!Kl(o))return o;o=In(o)}return n}let r=nf(e,t);for(;r&&E1(r)&&Kl(r);)r=nf(r,t);return r&&no(r)&&Kl(r)&&!uc(r)?n:r||T1(e)||n}const V1=async function(e){const t=this.getOffsetParent||Gm,n=this.getDimensions,r=await n(e.floating);return{reference:U1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W1(e){return Et(e).direction==="rtl"}const H1={convertOffsetParentRelativeRectToViewportRelativeRect:O1,getDocumentElement:It,getClippingRect:$1,getOffsetParent:Gm,getElementRects:V1,getClientRects:_1,getDimensions:B1,getScale:Dr,isElement:bt,isRTL:W1};function Xm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K1(e,t){let n=null,r;const o=It(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(l||t(),!g||!f)return;const S=Ws(p),y=Ws(o.clientWidth-(d+g)),w=Ws(o.clientHeight-(p+f)),m=Ws(d),v={rootMargin:-S+"px "+-y+"px "+-w+"px "+-m+"px",threshold:Ge(0,Ln(1,a))||1};let C=!0;function b(E){const k=E[0].intersectionRatio;if(k!==a){if(!C)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!Xm(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(b,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return i(!0),s}function Q1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=dc(e),d=o||s?[...u?rs(u):[],...rs(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const p=u&&l?K1(u,n):null;let g=-1,f=null;i&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let S,y=a?lr(e):null;a&&w();function w(){const m=lr(e);y&&!Xm(y,m)&&n(),y=m,S=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(S)}}const G1=y1,X1=x1,Y1=m1,q1=C1,Z1=g1,rf=h1,J1=w1,e2=(e,t,n)=>{const r=new Map,o={platform:H1,...n},s={...o.platform,_c:r};return p1(e,t,{...o,platform:s})};var t2=typeof document<"u",n2=function(){},ii=t2?x.useLayoutEffect:n2;function Li(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Li(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Li(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ym(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function of(e,t){const n=Ym(e);return Math.round(t*n)/n}function Ql(e){const t=x.useRef(e);return ii(()=>{t.current=e}),t}function r2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=x.useState(r);Li(g,r)||f(r);const[S,y]=x.useState(null),[w,m]=x.useState(null),h=x.useCallback(P=>{P!==E.current&&(E.current=P,y(P))},[]),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),C=s||S,b=i||w,E=x.useRef(null),k=x.useRef(null),j=x.useRef(d),_=a!=null,M=Ql(a),$=Ql(o),F=Ql(u),K=x.useCallback(()=>{if(!E.current||!k.current)return;const P={placement:t,strategy:n,middleware:g};$.current&&(P.platform=$.current),e2(E.current,k.current,P).then(T=>{const L={...T,isPositioned:F.current!==!1};O.current&&!Li(j.current,L)&&(j.current=L,gs.flushSync(()=>{p(L)}))})},[g,t,n,$,F]);ii(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const O=x.useRef(!1);ii(()=>(O.current=!0,()=>{O.current=!1}),[]),ii(()=>{if(C&&(E.current=C),b&&(k.current=b),C&&b){if(M.current)return M.current(C,b,K);K()}},[C,b,K,M,_]);const X=x.useMemo(()=>({reference:E,floating:k,setReference:h,setFloating:v}),[h,v]),B=x.useMemo(()=>({reference:C,floating:b}),[C,b]),V=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const T=of(B.floating,d.x),L=of(B.floating,d.y);return l?{...P,transform:"translate("+T+"px, "+L+"px)",...Ym(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:L}},[n,l,B.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:K,refs:X,elements:B,floatingStyles:V}),[d,K,X,B,V])}const o2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rf({element:r.current,padding:o}).fn(n):{}:r?rf({element:r,padding:o}).fn(n):{}}}},s2=(e,t)=>({...G1(e),options:[e,t]}),i2=(e,t)=>({...X1(e),options:[e,t]}),l2=(e,t)=>({...J1(e),options:[e,t]}),a2=(e,t)=>({...Y1(e),options:[e,t]}),u2=(e,t)=>({...q1(e),options:[e,t]}),c2=(e,t)=>({...Z1(e),options:[e,t]}),d2=(e,t)=>({...o2(e),options:[e,t]});var f2="Arrow",qm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(He.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});qm.displayName=f2;var p2=qm;function h2(e){const[t,n]=x.useState(void 0);return _n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zm="Popper",[Jm,eg]=el(Zm),[XS,tg]=Jm(Zm),ng="PopperAnchor",rg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=tg(ng,n),i=x.useRef(null),l=St(t,i);return x.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(He.div,{...o,ref:l})});rg.displayName=ng;var pc="PopperContent",[m2,g2]=Jm(pc),og=x.forwardRef((e,t)=>{var J,pr,Zt,$n,Jt,hr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:S,...y}=e,w=tg(pc,n),[m,h]=x.useState(null),v=St(t,en=>h(en)),[C,b]=x.useState(null),E=h2(C),k=(E==null?void 0:E.width)??0,j=(E==null?void 0:E.height)??0,_=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],F=$.length>0,K={padding:M,boundary:$.filter(y2),altBoundary:F},{refs:O,floatingStyles:X,placement:B,isPositioned:V,middlewareData:P}=r2({strategy:"fixed",placement:_,whileElementsMounted:(...en)=>Q1(...en,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[s2({mainAxis:o+j,alignmentAxis:i}),a&&i2({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?l2():void 0,...K}),a&&a2({...K}),u2({...K,apply:({elements:en,rects:ws,availableWidth:cl,availableHeight:Cs})=>{const{width:dl,height:po}=ws.reference,mr=en.floating.style;mr.setProperty("--radix-popper-available-width",`${cl}px`),mr.setProperty("--radix-popper-available-height",`${Cs}px`),mr.setProperty("--radix-popper-anchor-width",`${dl}px`),mr.setProperty("--radix-popper-anchor-height",`${po}px`)}}),C&&d2({element:C,padding:l}),x2({arrowWidth:k,arrowHeight:j}),g&&c2({strategy:"referenceHidden",...K})]}),[T,L]=lg(B),W=On(S);_n(()=>{V&&(W==null||W())},[V,W]);const z=(J=P.arrow)==null?void 0:J.x,Q=(pr=P.arrow)==null?void 0:pr.y,Y=((Zt=P.arrow)==null?void 0:Zt.centerOffset)!==0,[me,je]=x.useState();return _n(()=>{m&&je(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:V?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[($n=P.transformOrigin)==null?void 0:$n.x,(Jt=P.transformOrigin)==null?void 0:Jt.y].join(" "),...((hr=P.hide)==null?void 0:hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(m2,{scope:n,placedSide:T,onArrowChange:b,arrowX:z,arrowY:Q,shouldHideArrow:Y,children:c.jsx(He.div,{"data-side":T,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});og.displayName=pc;var sg="PopperArrow",v2={top:"bottom",right:"left",bottom:"top",left:"right"},ig=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=g2(sg,r),i=v2[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(p2,{...o,ref:n,style:{...o.style,display:"block"}})})});ig.displayName=sg;function y2(e){return e!==null}var x2=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,d]=lg(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=i?p:`${g}px`,y=`${-a}px`):u==="top"?(S=i?p:`${g}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=i?p:`${f}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=i?p:`${f}px`),{data:{x:S,y}}}});function lg(e){const[t,n="center"]=e.split("-");return[t,n]}var w2=rg,C2=og,S2=ig,[il,YS]=el("Tooltip",[eg]),hc=eg(),ag="TooltipProvider",b2=700,sf="tooltip.open",[E2,ug]=il(ag),cg=e=>{const{__scopeTooltip:t,delayDuration:n=b2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(E2,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};cg.displayName=ag;var dg="Tooltip",[qS,ll]=il(dg),qa="TooltipTrigger",k2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ll(qa,n),s=ug(qa,n),i=hc(n),l=x.useRef(null),a=St(t,l,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(w2,{asChild:!0,...i,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:xe(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:xe(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:xe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:xe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:xe(e.onBlur,o.onClose),onClick:xe(e.onClick,o.onClose)})})});k2.displayName=qa;var N2="TooltipPortal",[ZS,P2]=il(N2,{forceMount:void 0}),ro="TooltipContent",fg=x.forwardRef((e,t)=>{const n=P2(ro,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=ll(ro,e.__scopeTooltip);return c.jsx(tc,{present:r||i.open,children:i.disableHoverableContent?c.jsx(pg,{side:o,...s,ref:t}):c.jsx(j2,{side:o,...s,ref:t})})}),j2=x.forwardRef((e,t)=>{const n=ll(ro,e.__scopeTooltip),r=ug(ro,e.__scopeTooltip),o=x.useRef(null),s=St(t,o),[i,l]=x.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{l(null),p(!1)},[p]),f=x.useCallback((S,y)=>{const w=S.currentTarget,m={x:S.clientX,y:S.clientY},h=O2(m,w.getBoundingClientRect()),v=_2(m,h),C=L2(y.getBoundingClientRect()),b=F2([...v,...C]);l(b),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(a&&d){const S=w=>f(w,d),y=w=>f(w,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,f,g]),x.useEffect(()=>{if(i){const S=y=>{const w=y.target,m={x:y.clientX,y:y.clientY},h=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),v=!I2(m,i);h?g():v&&(g(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,i,u,g]),c.jsx(pg,{...e,ref:s})}),[T2,A2]=il(dg,{isInside:!1}),R2=N0("TooltipContent"),pg=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=ll(ro,n),u=hc(n),{onClose:d}=a;return x.useEffect(()=>(document.addEventListener(sf,d),()=>document.removeEventListener(sf,d)),[d]),x.useEffect(()=>{if(a.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),c.jsx(ec,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(C2,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(R2,{children:r}),c.jsx(T2,{scope:n,isInside:!0,children:c.jsx(q0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});fg.displayName=ro;var hg="TooltipArrow",M2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=hc(n);return A2(hg,n).isInside?null:c.jsx(S2,{...o,...r,ref:t})});M2.displayName=hg;function O2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function _2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function L2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function I2(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function F2(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),z2(t)}function z2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var D2=cg,mg=fg;const $2=D2,B2=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(mg,{ref:r,sideOffset:t,className:cr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));B2.displayName=mg.displayName;var al=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gn,pn,$r,jf,U2=(jf=class extends al{constructor(){super();q(this,Gn);q(this,pn);q(this,$r);D(this,$r,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,pn)||this.setEventListener(N(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,pn))==null||t.call(this),D(this,pn,void 0))}setEventListener(t){var n;D(this,$r,t),(n=N(this,pn))==null||n.call(this),D(this,pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Gn)!==t&&(D(this,Gn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Gn)=="boolean"?N(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,pn=new WeakMap,$r=new WeakMap,jf),gg=new U2,V2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hn,su,Tf,W2=(Tf=class{constructor(){q(this,hn,V2);q(this,su,!1)}setTimeoutProvider(e){D(this,hn,e)}setTimeout(e,t){return N(this,hn).setTimeout(e,t)}clearTimeout(e){N(this,hn).clearTimeout(e)}setInterval(e,t){return N(this,hn).setInterval(e,t)}clearInterval(e){N(this,hn).clearInterval(e)}},hn=new WeakMap,su=new WeakMap,Tf),Za=new W2;function H2(e){setTimeout(e,0)}var K2=typeof window>"u"||"Deno"in globalThis;function mt(){}function Q2(e,t){return typeof e=="function"?e(t):e}function G2(e){return typeof e=="number"&&e>=0&&e!==1/0}function X2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ja(e,t){return typeof e=="function"?e(t):e}function Y2(e,t){return typeof e=="function"?e(t):e}function lf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==mc(i,t.options))return!1}else if(!ss(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function af(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(os(t.options.mutationKey)!==os(s))return!1}else if(!ss(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mc(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,n)=>eu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ss(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ss(e[n],t[n])):!1}var q2=Object.prototype.hasOwnProperty;function vg(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=uf(e)&&uf(t);if(!r&&!(eu(e)&&eu(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let u=0;for(let d=0;d{Za.setTimeout(t,e)})}function J2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vg(e,t):t}function eC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gc=Symbol();function yg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function nC(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var xg=(()=>{let e=()=>K2;return{isServer(){return e()},setIsServer(t){e=t}}})();function rC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var oC=H2;function sC(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=oC;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Le=sC(),Br,mn,Ur,Af,iC=(Af=class extends al{constructor(){super();q(this,Br,!0);q(this,mn);q(this,Ur);D(this,Ur,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,mn)||this.setEventListener(N(this,Ur))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,mn))==null||t.call(this),D(this,mn,void 0))}setEventListener(t){var n;D(this,Ur,t),(n=N(this,mn))==null||n.call(this),D(this,mn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Br)!==t&&(D(this,Br,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,Br)}},Br=new WeakMap,mn=new WeakMap,Ur=new WeakMap,Af),Ii=new iC;function lC(e){return Math.min(1e3*2**e,3e4)}function wg(e){return(e??"online")==="online"?Ii.isOnline():!0}var tu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cg(e){let t=!1,n=0,r;const o=rC(),s=()=>o.status!=="pending",i=y=>{var w;if(!s()){const m=new tu(y);g(m),(w=e.onCancel)==null||w.call(e,m)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>gg.isFocused()&&(e.networkMode==="always"||Ii.isOnline())&&e.canRun(),d=()=>wg(e.networkMode)&&e.canRun(),p=y=>{s()||(r==null||r(),o.resolve(y))},g=y=>{s()||(r==null||r(),o.reject(y))},f=()=>new Promise(y=>{var w;r=m=>{(s()||u())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),S=()=>{if(s())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(p).catch(m=>{var E;if(s())return;const h=e.retry??(xg.isServer()?0:3),v=e.retryDelay??lC,C=typeof v=="function"?v(n,m):v,b=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?g(m):S()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?S():f().then(S),o)}}var Xn,Rf,Sg=(Rf=class{constructor(){q(this,Xn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G2(this.gcTime)&&D(this,Xn,Za.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xg.isServer()?1/0:5*60*1e3))}clearGcTimeout(){N(this,Xn)!==void 0&&(Za.clearTimeout(N(this,Xn)),D(this,Xn,void 0))}},Xn=new WeakMap,Rf);function aC(e){return{onFetch:(t,n)=>{var d,p,g,f,S;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const w=v=>{nC(v,()=>t.signal,()=>y=!0)},m=yg(t.options,t.fetchOptions),h=async(v,C,b)=>{if(y)return Promise.reject(t.signal.reason);if(C==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:C,direction:b?"backward":"forward",meta:t.options.meta};return w($),$})(),j=await m(k),{maxPages:_}=t.options,M=b?tC:eC;return{pages:M(v.pages,j,_),pageParams:M(v.pageParams,C,_)}};if(o&&s.length){const v=o==="backward",C=v?uC:df,b={pages:s,pageParams:i},E=C(r,b);l=await h(b,E,v)}else{const v=e??s.length;do{const C=a===0?i[0]??r.initialPageParam:df(r,l);if(a>0&&C==null)break;l=await h(l,C),a++}while(a{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function df(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function uC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Vr,Yn,Wr,nt,qn,Ce,as,Zn,Qe,bg,zt,Mf,cC=(Mf=class extends Sg{constructor(t){super();q(this,Qe);q(this,Vr);q(this,Yn);q(this,Wr);q(this,nt);q(this,qn);q(this,Ce);q(this,as);q(this,Zn);D(this,Zn,!1),D(this,as,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,qn,t.client),D(this,nt,N(this,qn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,Yn,pf(this.options)),this.state=t.state??N(this,Yn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,Vr)}get promise(){var t;return(t=N(this,Ce))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,as),...t},t!=null&&t._type&&D(this,Vr,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=pf(this.options);n.data!==void 0&&(this.setState(ff(n.data,n.dataUpdatedAt)),D(this,Yn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,nt).remove(this)}setData(t,n){const r=J2(this.state.data,t,this.options);return Ee(this,Qe,zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ee(this,Qe,zt).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=N(this,Ce))==null?void 0:r.promise;return(o=N(this,Ce))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,Yn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Y2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ja(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!X2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ce))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ce))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Ce)&&(N(this,Zn)||Ee(this,Qe,bg).call(this)?N(this,Ce).cancel({revert:!0}):N(this,Ce).cancelRetry()),this.scheduleGc()),N(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Qe,zt).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,p,g,f,S,y,w,m,h,v;if(this.state.fetchStatus!=="idle"&&((u=N(this,Ce))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Ce))return N(this,Ce).continueRetry(),N(this,Ce).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(b=>b.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(D(this,Zn,!0),r.signal)})},s=()=>{const C=yg(this.options,n),E=(()=>{const k={client:N(this,qn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return D(this,Zn,!1),this.options.persister?this.options.persister(C,E,this):C(E)},l=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,qn),state:this.state,fetchFn:s};return o(C),C})(),a=N(this,Vr)==="infinite"?aC(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),D(this,Wr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Ee(this,Qe,zt).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),D(this,Ce,Cg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:C=>{C instanceof tu&&C.revert&&this.setState({...N(this,Wr),fetchStatus:"idle"}),r.abort()},onFail:(C,b)=>{Ee(this,Qe,zt).call(this,{type:"failed",failureCount:C,error:b})},onPause:()=>{Ee(this,Qe,zt).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Qe,zt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const C=await N(this,Ce).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(f=(g=N(this,nt).config).onSuccess)==null||f.call(g,C,this),(y=(S=N(this,nt).config).onSettled)==null||y.call(S,C,this.state.error,this),C}catch(C){if(C instanceof tu){if(C.silent)return N(this,Ce).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ee(this,Qe,zt).call(this,{type:"error",error:C}),(m=(w=N(this,nt).config).onError)==null||m.call(w,C,this),(v=(h=N(this,nt).config).onSettled)==null||v.call(h,this.state.data,C,this),C}finally{this.scheduleGc()}}},Vr=new WeakMap,Yn=new WeakMap,Wr=new WeakMap,nt=new WeakMap,qn=new WeakMap,Ce=new WeakMap,as=new WeakMap,Zn=new WeakMap,Qe=new WeakSet,bg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dC(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...ff(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return D(this,Wr,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,nt).notify({query:this,type:"updated",action:t})})},Mf);function dC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ff(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function pf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var us,Pt,Re,Jn,jt,an,Of,fC=(Of=class extends Sg{constructor(t){super();q(this,jt);q(this,us);q(this,Pt);q(this,Re);q(this,Jn);D(this,us,t.client),this.mutationId=t.mutationId,D(this,Re,t.mutationCache),D(this,Pt,[]),this.state=t.state||pC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Pt).includes(t)||(N(this,Pt).push(t),this.clearGcTimeout(),N(this,Re).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,Pt,N(this,Pt).filter(n=>n!==t)),this.scheduleGc(),N(this,Re).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Re).remove(this))}continue(){var t;return((t=N(this,Jn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,a,u,d,p,g,f,S,y,w,m,h,v,C,b,E,k;const n=()=>{Ee(this,jt,an).call(this,{type:"continue"})},r={client:N(this,us),meta:this.options.meta,mutationKey:this.options.mutationKey};D(this,Jn,Cg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(j,_)=>{Ee(this,jt,an).call(this,{type:"failed",failureCount:j,error:_})},onPause:()=>{Ee(this,jt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Re).canRun(this)}));const o=this.state.status==="pending",s=!N(this,Jn).canStart();try{if(o)n();else{Ee(this,jt,an).call(this,{type:"pending",variables:t,isPaused:s}),N(this,Re).config.onMutate&&await N(this,Re).config.onMutate(t,this,r);const _=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));_!==this.state.context&&Ee(this,jt,an).call(this,{type:"pending",context:_,variables:t,isPaused:s})}const j=await N(this,Jn).start();return await((u=(a=N(this,Re).config).onSuccess)==null?void 0:u.call(a,j,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,j,t,this.state.context,r)),await((f=(g=N(this,Re).config).onSettled)==null?void 0:f.call(g,j,null,this.state.variables,this.state.context,this,r)),await((y=(S=this.options).onSettled)==null?void 0:y.call(S,j,null,t,this.state.context,r)),Ee(this,jt,an).call(this,{type:"success",data:j}),j}catch(j){try{await((m=(w=N(this,Re).config).onError)==null?void 0:m.call(w,j,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((v=(h=this.options).onError)==null?void 0:v.call(h,j,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((b=(C=N(this,Re).config).onSettled)==null?void 0:b.call(C,void 0,j,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,j,t,this.state.context,r))}catch(_){Promise.reject(_)}throw Ee(this,jt,an).call(this,{type:"error",error:j}),j}finally{N(this,Re).runNext(this)}}},us=new WeakMap,Pt=new WeakMap,Re=new WeakMap,Jn=new WeakMap,jt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Le.batch(()=>{N(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Re).notify({mutation:this,type:"updated",action:t})})},Of);function pC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bt,gt,cs,_f,hC=(_f=class extends al{constructor(t={}){super();q(this,Bt);q(this,gt);q(this,cs);this.config=t,D(this,Bt,new Set),D(this,gt,new Map),D(this,cs,0)}build(t,n,r){const o=new fC({client:t,mutationCache:this,mutationId:++bs(this,cs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,Bt).add(t);const n=Hs(t);if(typeof n=="string"){const r=N(this,gt).get(n);r?r.push(t):N(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Bt).delete(t)){const n=Hs(t);if(typeof n=="string"){const r=N(this,gt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hs(t);if(typeof n=="string"){const r=N(this,gt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Hs(t);if(typeof n=="string"){const o=(r=N(this,gt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Le.batch(()=>{N(this,Bt).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Bt).clear(),N(this,gt).clear()})}getAll(){return Array.from(N(this,Bt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>af(n,r))}findAll(t={}){return this.getAll().filter(n=>af(t,n))}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Le.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},Bt=new WeakMap,gt=new WeakMap,cs=new WeakMap,_f);function Hs(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Tt,Lf,mC=(Lf=class extends al{constructor(t={}){super();q(this,Tt);this.config=t,D(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??mc(o,n);let i=this.get(s);return i||(i=new cC({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,Tt).has(t.queryHash)||(N(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Le.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Tt).get(t)}getAll(){return[...N(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>lf(t,r)):n}notify(t){Le.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Le.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Le.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,Lf),fe,gn,vn,Hr,Kr,yn,Qr,Gr,If,gC=(If=class{constructor(e={}){q(this,fe);q(this,gn);q(this,vn);q(this,Hr);q(this,Kr);q(this,yn);q(this,Qr);q(this,Gr);D(this,fe,e.queryCache||new mC),D(this,gn,e.mutationCache||new hC),D(this,vn,e.defaultOptions||{}),D(this,Hr,new Map),D(this,Kr,new Map),D(this,yn,0)}mount(){bs(this,yn)._++,N(this,yn)===1&&(D(this,Qr,gg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,fe).onFocus())})),D(this,Gr,Ii.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,fe).onOnline())})))}unmount(){var e,t;bs(this,yn)._--,N(this,yn)===0&&((e=N(this,Qr))==null||e.call(this),D(this,Qr,void 0),(t=N(this,Gr))==null||t.call(this),D(this,Gr,void 0))}isFetching(e){return N(this,fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,fe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,fe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ja(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,fe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,fe).get(r.queryHash),s=o==null?void 0:o.state.data,i=Q2(t,s);if(i!==void 0)return N(this,fe).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Le.batch(()=>N(this,fe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,fe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,fe);Le.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,fe);return Le.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Le.batch(()=>N(this,fe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return Le.batch(()=>(N(this,fe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Le.batch(()=>N(this,fe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,fe).build(this,t);return n.isStaleByTime(Ja(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ii.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,fe)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(e){D(this,vn,e)}setQueryDefaults(e,t){N(this,Hr).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Hr).values()],n={};return t.forEach(r=>{ss(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Kr).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Kr).values()],n={};return t.forEach(r=>{ss(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,fe).clear(),N(this,gn).clear()}},fe=new WeakMap,gn=new WeakMap,vn=new WeakMap,Hr=new WeakMap,Kr=new WeakMap,yn=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,If),vC=x.createContext(void 0),yC=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(vC.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Eg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wC(){return Math.random().toString(36).substr(2,8)}function mf(e,t){return{usr:e.state,key:e.key,idx:t}}function nu(e,t,n,r){return n===void 0&&(n=null),is({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?co(t):t,{state:n,key:t&&t.key||r||wC()})}function Fi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function co(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function CC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=Cn.Pop,a=null,u=d();u==null&&(u=0,i.replaceState(is({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){l=Cn.Pop;let w=d(),m=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:m})}function g(w,m){l=Cn.Push;let h=nu(y.location,w,m);u=d()+1;let v=mf(h,u),C=y.createHref(h);try{i.pushState(v,"",C)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(C)}s&&a&&a({action:l,location:y.location,delta:1})}function f(w,m){l=Cn.Replace;let h=nu(y.location,w,m);u=d();let v=mf(h,u),C=y.createHref(h);i.replaceState(v,"",C),s&&a&&a({action:l,location:y.location,delta:0})}function S(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:Fi(w);return h=h.replace(/ $/,"%20"),ve(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return l},get location(){return e(o,i)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(hf,p),a=w,()=>{o.removeEventListener(hf,p),a=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let m=S(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(w){return i.go(w)}};return y}var gf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gf||(gf={}));function SC(e,t,n){return n===void 0&&(n="/"),bC(e,t,n)}function bC(e,t,n,r){let o=typeof t=="string"?co(t):t,s=vc(o.pathname||"/",n);if(s==null)return null;let i=kg(e);EC(i);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=An([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kg(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:RC(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of Ng(s.path))o(s,i,a)}),t}function Ng(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Ng(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function EC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:MC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kC=/^:[\w-]+$/,NC=3,PC=2,jC=1,TC=10,AC=-2,vf=e=>e==="*";function RC(e,t){let n=e.split("/"),r=n.length;return n.some(vf)&&(r+=AC),t&&(r+=PC),n.filter(o=>!vf(o)).reduce((o,s)=>o+(kC.test(s)?NC:s===""?jC:TC),r)}function MC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function OC(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l{let{paramName:g,isOptional:f}=d;if(g==="*"){let y=l[p]||"";i=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const S=l[p];return f&&!S?u[g]=void 0:u[g]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function LC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function IC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Eg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function FC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?co(e):e;return{pathname:n?n.startsWith("/")?n:zC(n,t):t,search:BC(r),hash:UC(o)}}function zC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Gl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Pg(e,t){let n=DC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=co(e):(o=is({},e),ve(!o.pathname||!o.pathname.includes("?"),Gl("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),Gl("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),Gl("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let a=FC(o,l),u=i&&i!=="/"&&i.endsWith("/"),d=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const An=e=>e.join("/").replace(/\/\/+/g,"/"),$C=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tg=["post","put","patch","delete"];new Set(Tg);const WC=["get",...Tg];new Set(WC);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=jg(u,JSON.parse(i),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:An([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,i,s,e])}function Og(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(dr),{matches:o}=x.useContext(fr),{pathname:s}=fo(),i=JSON.stringify(Pg(o,r.v7_relativeSplatPath));return x.useMemo(()=>jg(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function GC(e,t){return XC(e,t)}function XC(e,t,n,r){xs()||ve(!1);let{navigator:o}=x.useContext(dr),{matches:s}=x.useContext(fr),i=s[s.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let u=fo(),d;if(t){var p;let w=typeof t=="string"?co(t):t;a==="/"||(p=w.pathname)!=null&&p.startsWith(a)||ve(!1),d=w}else d=u;let g=d.pathname||"/",f=g;if(a!=="/"){let w=a.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=SC(e,{pathname:f}),y=eS(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:An([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:An([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?x.createElement(ul.Provider,{value:{location:ls({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Cn.Pop}},y):y}function YC(){let e=oS(),t=VC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const qC=x.createElement(YC,null);class ZC extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(fr.Provider,{value:this.props.routeContext},x.createElement(Ag.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JC(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(yc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(fr.Provider,{value:t},r)}function eS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||ve(!1),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let f,S=!1,y=null,w=null;n&&(f=l&&p.route.id?l[p.route.id]:void 0,y=p.route.errorElement||qC,a&&(u<0&&g===0?(iS("route-fallback"),S=!0,w=null):u===g&&(S=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,g+1)),h=()=>{let v;return f?v=y:S?v=w:p.route.Component?v=x.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,x.createElement(JC,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(ZC,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var _g=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_g||{}),Lg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lg||{});function tS(e){let t=x.useContext(yc);return t||ve(!1),t}function nS(e){let t=x.useContext(HC);return t||ve(!1),t}function rS(e){let t=x.useContext(fr);return t||ve(!1),t}function Ig(e){let t=rS(),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function oS(){var e;let t=x.useContext(Ag),n=nS(),r=Ig();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function sS(){let{router:e}=tS(_g.UseNavigateStable),t=Ig(Lg.UseNavigateStable),n=x.useRef(!1);return Rg(()=>{n.current=!0}),x.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ls({fromRouteId:t},s)))},[e,t])}const yf={};function iS(e,t,n){yf[e]||(yf[e]=!0)}function lS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function li(e){ve(!1)}function aS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Cn.Pop,navigator:s,static:i=!1,future:l}=e;xs()&&ve(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:s,static:i,future:ls({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=co(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:S="default"}=r,y=x.useMemo(()=>{let w=vc(d,a);return w==null?null:{location:{pathname:w,search:p,hash:g,state:f,key:S},navigationType:o}},[a,d,p,g,f,S,o]);return y==null?null:x.createElement(dr.Provider,{value:u},x.createElement(ul.Provider,{children:n,value:y}))}function uS(e){let{children:t,location:n}=e;return GC(ru(t),n)}new Promise(()=>{});function ru(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let s=[...t,o];if(r.type===x.Fragment){n.push.apply(n,ru(r.props.children,s));return}r.type!==li&&ve(!1),!r.props.index||!r.props.children||ve(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ru(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function dS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fS(e,t){return e.button===0&&(!t||t==="_self")&&!dS(e)}const pS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hS="6";try{window.__reactRouterVersion=hS}catch{}const mS="startTransition",xf=Gf[mS];function gS(e){let{basename:t,children:n,future:r,window:o}=e,s=x.useRef();s.current==null&&(s.current=xC({window:o,v5Compat:!0}));let i=s.current,[l,a]=x.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=x.useCallback(p=>{u&&xf?xf(()=>a(p)):a(p)},[a,u]);return x.useLayoutEffect(()=>i.listen(d),[i,d]),x.useEffect(()=>lS(r),[r]),x.createElement(aS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const vS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xS=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:u,preventScrollReset:d,viewTransition:p}=t,g=cS(t,pS),{basename:f}=x.useContext(dr),S,y=!1;if(typeof u=="string"&&yS.test(u)&&(S=u,vS))try{let v=new URL(window.location.href),C=u.startsWith("//")?new URL(v.protocol+u):new URL(u),b=vc(C.pathname,f);C.origin===v.origin&&b!=null?u=b+C.search+C.hash:y=!0}catch{}let w=KC(u,{relative:o}),m=wS(u,{replace:i,state:l,target:a,preventScrollReset:d,relative:o,viewTransition:p});function h(v){r&&r(v),v.defaultPrevented||m(v)}return x.createElement("a",ou({},g,{href:S||w,onClick:y||s?r:h,ref:n,target:a}))});var wf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wf||(wf={}));var Cf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cf||(Cf={}));function wS(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:l}=t===void 0?{}:t,a=Mg(),u=fo(),d=Og(e,{relative:i});return x.useCallback(p=>{if(fS(p,n)){p.preventDefault();let g=r!==void 0?r:Fi(u)===Fi(d);a(e,{replace:g,state:o,preventScrollReset:s,relative:i,viewTransition:l})}},[u,a,d,r,o,n,e,s,i,l])}const CS=()=>{const e=Mg();return x.useEffect(()=>{e("/services/real-estate-investment",{replace:!0})},[e]),null},SS=()=>{const[e,t]=x.useState(!1);fo();const n=[{label:"Home",href:"/"},{label:"Services",href:"/services/real-estate-investment",active:!0},{label:"Investor Relations",href:"#"},{label:"About",href:"#"},{label:"Contact",href:"#"}];return c.jsx("header",{className:"w-full bg-[#0A2540] border-b border-[#C6A142]/20 sticky top-0 z-50",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8",children:[c.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-20",children:[c.jsxs(xS,{to:"/",className:"flex flex-col leading-none",children:[c.jsx("span",{className:"text-white font-bold text-lg tracking-wide",style:{fontFamily:"'Inter', sans-serif"},children:"ALMANZA"}),c.jsx("span",{className:"text-[#C6A142] text-xs font-medium tracking-widest uppercase",children:"Investment Company KSCC"})]}),c.jsx("nav",{className:"hidden lg:flex items-center gap-8",children:n.map(r=>c.jsx("a",{href:r.href,className:`text-sm font-medium tracking-wide transition-colors duration-150 ${r.active?"text-[#C6A142] border-b border-[#C6A142] pb-0.5":"text-white/75 hover:text-white"}`,children:r.label},r.label))}),c.jsx("div",{className:"hidden lg:flex items-center gap-4",children:c.jsx("a",{href:"/contact/schedule-consultation",className:"btn-gold text-xs px-5 py-2.5 rounded",children:"Become a Partner"})}),c.jsx("button",{className:"lg:hidden text-white p-2",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?c.jsx(Tm,{size:22}):c.jsx(_x,{size:22})})]}),e&&c.jsxs("nav",{className:"lg:hidden border-t border-white/10 py-4 flex flex-col gap-4",children:[n.map(r=>c.jsx("a",{href:r.href,className:`text-sm font-medium px-2 py-1 transition-colors ${r.active?"text-[#C6A142]":"text-white/75 hover:text-white"}`,onClick:()=>t(!1),children:r.label},r.label)),c.jsx("a",{href:"/contact/schedule-consultation",className:"btn-gold text-xs px-5 py-2.5 rounded self-start mt-2",children:"Become a Partner"})]})]})})},bS=()=>c.jsx("footer",{className:"bg-[#0A2540] border-t-[3px] border-[#C6A142]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-12",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-12",children:[c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"mb-4",children:[c.jsx("p",{className:"text-white font-bold text-xl tracking-wide",children:"ALMANZA"}),c.jsx("p",{className:"text-[#C6A142] text-xs tracking-widest uppercase font-medium",children:"Investment Company KSCC"}),c.jsx("p",{className:"text-[#C6A142]/80 text-sm mt-1",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"شركة المانزا للاستثمار (ش.م.ك.م)"})]}),c.jsx("p",{className:"text-white/60 text-xs leading-relaxed max-w-sm",children:"Almanza Investment Company KSCC is a Kuwaiti Shareholding Company established in 1998. Licensed by the Capital Markets Authority (CMA) of Kuwait and regulated by the Central Bank of Kuwait (CBK) where applicable."}),c.jsx("p",{className:"text-white/50 text-xs leading-relaxed max-w-sm mt-3",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"شركة مرخصة من قبل هيئة أسواق المال الكويتية ومنظمة من بنك الكويت المركزي. جميع الاستثمارات العقارية متوافقة مع أحكام الشريعة الإسلامية."})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#C6A142] text-xs uppercase tracking-widest font-semibold mb-4",children:"Quick Links"}),c.jsx("ul",{className:"space-y-2.5",children:["Real Estate Investment","Asset Management","Annual Report","Investor Relations","Subsidiary Companies","Contact Us"].map(e=>c.jsx("li",{children:c.jsx("a",{href:"#",className:"text-white/60 text-sm hover:text-white transition-colors",children:e})},e))})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#C6A142] text-xs uppercase tracking-widest font-semibold mb-4",children:"Regulatory Status"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:["CMA Licensed","CBK Regulated","Ministry of Commerce","Shari'a Certified"].map(e=>c.jsx("span",{className:"reg-badge text-[10px] py-0.5",children:e},e))}),c.jsx("p",{className:"text-white/50 text-xs mt-3",children:"CMA License No. XXX"}),c.jsx("p",{className:"text-white/50 text-xs mt-1",children:"P.O. Box XXXX, Kuwait City, Kuwait"}),c.jsx("p",{className:"text-white/50 text-xs mt-1",children:"T: +965 XXXX XXXX"}),c.jsx("p",{className:"text-white/50 text-xs mt-1",children:"E: ir@almanzainvestment.com"})]})]}),c.jsx("div",{className:"border-t border-white/10 pt-6",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[c.jsx("p",{className:"text-white/40 text-xs",children:"© 2026 Almanza Investment Company KSCC. All rights reserved. This page is for informational purposes only and does not constitute investment advice. Past performance is not indicative of future results. All investments carry risk."}),c.jsxs("div",{className:"flex gap-4 shrink-0",children:[c.jsx("a",{href:"#",className:"text-white/40 text-xs hover:text-white/70 transition-colors",children:"Privacy Policy"}),c.jsx("a",{href:"#",className:"text-white/40 text-xs hover:text-white/70 transition-colors",children:"Disclaimer"}),c.jsx("a",{href:"#",className:"text-white/40 text-xs hover:text-white/70 transition-colors",children:"CMA Disclosures"})]})]})})]})}),ES="/assets/hero-real-estate-BT3ytFAa.jpg",kS=()=>c.jsxs("section",{className:"relative overflow-hidden",style:{minHeight:"520px"},children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:ES,alt:"GCC Real Estate Investment – Almanza Investment",className:"w-full h-full object-cover object-center"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(90deg, rgba(10,37,64,0.97) 0%, rgba(10,37,64,0.85) 50%, rgba(10,37,64,0.65) 100%)"}})]}),c.jsxs("div",{className:"relative max-w-[1280px] mx-auto px-4 sm:px-8 py-16 lg:py-24",children:[c.jsxs("nav",{className:"flex items-center gap-1.5 mb-8 text-xs text-white/50","aria-label":"Breadcrumb",children:[c.jsx("a",{href:"/",className:"hover:text-white/80 transition-colors",children:"Home"}),c.jsx(Ud,{size:12}),c.jsx("a",{href:"#",className:"hover:text-white/80 transition-colors",children:"Services"}),c.jsx(Ud,{size:12}),c.jsx("span",{className:"text-[#C6A142]",children:"Real Estate Investment"})]}),c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("div",{className:"mb-3",children:c.jsx("span",{className:"section-label text-[#C6A142]",children:"Shari'a-Compliant · GCC-Focused · Institutional"})}),c.jsx("h1",{className:"text-white font-bold mb-2",style:{fontSize:"clamp(2rem, 5vw, 3.25rem)",lineHeight:1.15},children:"Real Estate Investment"}),c.jsx("p",{className:"text-[#C6A142]/90 mb-5",style:{fontFamily:"'Tajawal', sans-serif",fontSize:"1.35rem",fontWeight:500,direction:"rtl",textAlign:"right"},children:"الاستثمار العقاري"}),c.jsx("p",{className:"text-[#C6A142] font-semibold text-lg mb-6 tracking-wide",children:"Your Preferred Partner for Real Estate Investment in the GCC"}),c.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-sm p-5 max-w-2xl",children:[c.jsxs("p",{className:"text-white/70 text-xs leading-relaxed",children:["Almanza Investment Company KSCC is a Kuwaiti Shareholding Company, incorporated in the State of Kuwait in"," ",c.jsx("strong",{className:"text-white/90",children:"1998"}),". Licensed by the"," ",c.jsx("strong",{className:"text-white/90",children:"Capital Markets Authority (CMA) of Kuwait"})," (License No. XXX) and regulated by the ",c.jsx("strong",{className:"text-white/90",children:"Central Bank of Kuwait (CBK)"})," where applicable, in accordance with the Kuwait Ministry of Commerce and Industry. All real estate investments are"," ",c.jsx("strong",{className:"text-[#C6A142]",children:"Shari'a-compliant"}),"."]}),c.jsx("p",{className:"text-white/50 text-xs leading-relaxed mt-3",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"جميع الاستثمارات العقارية متوافقة مع أحكام الشريعة الإسلامية وخاضعة لرقابة هيئة الرقابة الشرعية الداخلية."})]}),c.jsx("div",{className:"flex flex-wrap gap-2 mt-6",children:["CMA Licensed","CBK Regulated","Shari'a Certified","Est. 1998"].map(e=>c.jsx("span",{className:"reg-badge",children:e},e))})]})]})]}),Sf=[{label:"Real Estate Since",labelAr:"منذ عام",value:"1998",sub:"Established in Kuwait"},{label:"Real Estate AUM",labelAr:"إجمالي الأصول المُدارة",value:"$4.2B",sub:"Total assets under management"},{label:"Ownership",labelAr:"هيكل الملكية",value:"KSCC",sub:"Kuwaiti Shareholding Company"}],NS=()=>c.jsx("section",{className:"bg-[#F8FAFE]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-0 border border-border rounded-sm overflow-hidden mb-10",children:Sf.map((e,t)=>c.jsxs("div",{className:`bg-white p-8 flex flex-col items-center text-center ${tc.jsx("section",{className:"bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Investment Universe"}),c.jsx("h2",{className:"section-title mb-2",children:"GCC Principal Real Estate Investments"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"الاستثمارات العقارية الرئيسية في دول مجلس التعاون"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-0 border border-border rounded-sm overflow-hidden",children:bf.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:`p-7 flex flex-col bg-white hover:bg-[#F8FAFE] transition-colors duration-200 ${tc.jsxs("li",{className:"flex items-start gap-2 text-xs text-[#4A5B6E]",children:[c.jsx("span",{className:"text-[#C6A142] mt-0.5 shrink-0",children:"▪"}),r]},r))})]},e.en)})})]})}),jS=[{icon:Px,en:"Income Focus",ar:"التركيز على الدخل",desc:"Prioritize stable, long-term income from high-quality, income-producing real estate assets across the GCC. Our income-oriented mandates target net rental yields of 6–8% annually, distributed on a quarterly basis.",tags:["Rental income","Quarterly distributions","6–8% target yield"]},{icon:Ex,en:"Capital Appreciation",ar:"تنمية رأس المال",desc:"Target value-add and opportunistic investments for long-term capital growth. We identify undervalued assets in high-growth GCC submarkets and apply active asset management to enhance value over the investment horizon.",tags:["Value-add strategy","Opportunistic mandates","5–7 year horizon"]},{icon:Fx,en:"Shari'a Compliance",ar:"الامتثال للشريعة الإسلامية",desc:"All structures are asset-backed and free from interest (riba). Our Shari'a Supervisory Board reviews every mandate before deployment, and issues an annual Shari'a compliance certificate for each property and fund.",tags:["Zero riba","Asset-backed","Annual Shari'a audit"]}],TS=()=>c.jsx("section",{className:"bg-[#F8FAFE]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Our Approach"}),c.jsx("h2",{className:"section-title mb-2",children:"Investment Philosophy"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"فلسفة الاستثمار"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:jS.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:"inst-card border-t-2 border-t-[#C6A142]",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[c.jsx("div",{className:"w-10 h-10 rounded-sm bg-[#0A2540] flex items-center justify-center shrink-0",children:c.jsx(n,{size:18,color:"#C6A142"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#0A2540] font-bold text-sm",children:e.en}),c.jsx("p",{className:"text-[#C6A142] text-xs",style:{fontFamily:"'Tajawal', sans-serif"},children:e.ar})]})]}),c.jsx("p",{className:"text-[#4A5B6E] text-xs leading-relaxed mb-5 flex-1",children:e.desc}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.tags.map(r=>c.jsx("span",{className:"text-[10px] px-2 py-0.5 bg-[#F8FAFE] border border-border text-[#4A5B6E] rounded-sm",children:r},r))})]},e.en)})})]})}),AS=["Asset verification — real, tangible, income-producing assets only","Prohibition of interest-based (riba) financing in all structures","Contractual structure approval: Ijara (leasing), Musharaka (partnership), Wakala (agency)","Annual Shari'a compliance certificate for each property and fund","Ongoing monitoring by the internal Shari'a Supervisory Board"],RS=()=>c.jsx("section",{className:"bg-white",children:c.jsx("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:c.jsx("div",{className:"gold-border-top border border-border rounded-sm p-8 lg:p-12",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10",children:[c.jsxs("div",{children:[c.jsx("span",{className:"section-label block mb-3",children:"Islamic Finance"}),c.jsx("h2",{className:"section-title mb-2",children:"Shari'a-Compliant Real Estate Framework"}),c.jsx("p",{className:"section-title-ar mb-4",style:{fontFamily:"'Tajawal', sans-serif"},children:"الإطار الشرعي للاستثمار العقاري"}),c.jsx("div",{className:"divider-gold"}),c.jsxs("p",{className:"text-[#4A5B6E] text-sm leading-relaxed mb-6",children:["All real estate investments managed by Almanza are structured in accordance with Islamic principles, overseen by our internal ",c.jsx("strong",{className:"text-[#0A2540]",children:"Shari'a Supervisory Board"}),". We employ Shari'a-compliant contractual structures for direct property, development, REITs, and real estate funds."]}),c.jsx("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[{en:"Ijara",ar:"الإجارة",sub:"Leasing"},{en:"Musharaka",ar:"المشاركة",sub:"Partnership"},{en:"Wakala",ar:"الوكالة",sub:"Agency"}].map(e=>c.jsxs("div",{className:"text-center p-4 bg-[#F8FAFE] border border-border rounded-sm",children:[c.jsx("p",{className:"text-[#0A2540] font-bold text-sm mb-0.5",children:e.en}),c.jsx("p",{className:"text-[#C6A142] text-xs mb-1",style:{fontFamily:"'Tajawal', sans-serif"},children:e.ar}),c.jsx("p",{className:"text-[#4A5B6E] text-[10px]",children:e.sub})]},e.en))}),c.jsx("div",{className:"flex flex-wrap gap-2",children:["Shari'a Supervisory Board","Ijara / Musharaka Structures","Annual Shari'a Audit","Zero Riba"].map(e=>c.jsx("span",{className:"reg-badge",children:e},e))})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#0A2540] font-semibold text-sm mb-4 uppercase tracking-wide",children:"Our Shari'a Screening Process"}),c.jsx("ul",{className:"space-y-4",children:AS.map((e,t)=>c.jsxs("li",{className:"flex items-start gap-4",children:[c.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold text-white",style:{background:"#C6A142"},children:t+1}),c.jsx("p",{className:"text-[#4A5B6E] text-sm leading-relaxed",children:e})]},t))}),c.jsx("div",{className:"mt-8 p-4 bg-[#F8FAFE] border-l-2 border-[#C6A142]",children:c.jsx("p",{className:"text-[#4A5B6E] text-xs leading-relaxed",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"تلتزم شركة المانزا للاستثمار بجميع أحكام ومبادئ الشريعة الإسلامية في هيكلة استثماراتها العقارية، وتخضع جميع العقود والصناديق لمراجعة دورية من قِبل هيئة الرقابة الشرعية الداخلية."})})]})]})})})}),Ef=[{icon:wx,en:"Work & Spread Knowledge",ar:"العمل ونشر المعرفة",desc:"We operate with intellectual rigor and share expertise across our investment team and with our clients."},{icon:Tx,en:"Persevere",ar:"المثابرة",desc:"We remain steadfast through market cycles, maintaining discipline in our investment approach."},{icon:zx,en:"Act with Integrity",ar:"العمل بنزاهة",desc:"Every decision is made with full transparency and in the best interests of our investors."},{icon:Rx,en:"Maintain Ethics",ar:"الحفاظ على الأخلاق",desc:"Our conduct is governed by the highest ethical standards, consistent with Islamic values and CMA guidelines."},{icon:Bx,en:"Invest in People",ar:"الاستثمار في الأشخاص",desc:"We invest in the professional development of our team and build long-term partnerships with our clients."}],MS=()=>c.jsx("section",{className:"bg-[#F8FAFE]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Who We Are"}),c.jsx("h2",{className:"section-title mb-2",children:"Core Values"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"القيم الأساسية"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-0 border border-border rounded-sm overflow-hidden",children:Ef.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:`bg-white p-7 flex flex-col hover:bg-[#0A2540] group transition-colors duration-300 ${tc.jsx("section",{className:"bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Who We Serve"}),c.jsx("h2",{className:"section-title mb-2",children:"Target Client Segments"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"شرائح العملاء المستهدفون"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5",children:OS.map(e=>{const t=e.icon;return c.jsxs("div",{className:"inst-card",children:[c.jsx("div",{className:"flex items-center gap-3 mb-4",children:c.jsx("div",{className:"w-10 h-10 rounded-sm bg-[#0A2540] flex items-center justify-center shrink-0",children:c.jsx(t,{size:18,color:"#C6A142"})})}),c.jsx("h3",{className:"text-[#0A2540] font-bold text-sm mb-0.5",children:e.en}),c.jsx("p",{className:"text-[#C6A142] text-xs mb-3",style:{fontFamily:"'Tajawal', sans-serif"},children:e.ar}),c.jsx("p",{className:"text-[#4A5B6E] text-xs leading-relaxed mb-4 flex-1",children:e.mandate}),c.jsx("ul",{className:"space-y-1.5",children:e.details.map(n=>c.jsxs("li",{className:"flex items-start gap-2 text-xs text-[#4A5B6E]",children:[c.jsx("span",{className:"text-[#C6A142] mt-0.5 shrink-0",children:"▪"}),n]},n))})]},e.en)})})]})}),kf=[{label:"Direct Real Estate Portfolio",labelAr:"محفظة العقارات المباشرة",value:"$2.1B",sub:"Across GCC markets",color:"#C6A142"},{label:"Development Projects Completed",labelAr:"مشاريع التطوير المكتملة",value:"12+",sub:"Ground-up & redevelopment",color:"#C6A142"},{label:"Average Property Yield",labelAr:"متوسط العائد العقاري",value:"7.2%",sub:"Net annual yield (5-year avg.)",color:"#C6A142"}],LS=[{title:"Kuwait City Commercial Tower",type:"Direct Property · 2022",result:"Acquired Grade-A commercial tower in Sharq district. 98% occupancy at acquisition. Annual net yield: 7.8%.",value:"$340M"},{title:"Riyadh Mixed-Use Development",type:"Development · 2021",result:"Ground-up mixed-use project in Al Olaya. Delivered on schedule, 100% pre-leased prior to handover.",value:"$220M"},{title:"Dubai Logistics Portfolio",type:"Direct Property · 2023",result:"Acquired 4 logistics assets in Jebel Ali Free Zone. Long-term Ijara leases with investment-grade tenants.",value:"$185M"}],IS=()=>c.jsx("section",{className:"bg-[#F8FAFE]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Track Record"}),c.jsx("h2",{className:"section-title mb-2",children:"Our Success Stories / Performance Highlights"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"قصص نجاحنا · أبرز مؤشرات الأداء"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-0 border border-border rounded-sm overflow-hidden mb-10",children:kf.map((e,t)=>c.jsxs("div",{className:`bg-white p-8 flex flex-col items-center text-center ${tc.jsxs("div",{className:"inst-card border-l-2 border-l-[#C6A142]",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[#0A2540] font-bold text-sm mb-0.5",children:e.title}),c.jsx("p",{className:"text-[#C6A142] text-[11px] font-medium",children:e.type})]}),c.jsx("p",{className:"text-[#0A2540] font-bold text-sm shrink-0",children:e.value})]}),c.jsx("p",{className:"text-[#4A5B6E] text-xs leading-relaxed",children:e.result})]},e.title))}),c.jsx("p",{className:"text-[#4A5B6E] text-[10px] mt-6 leading-relaxed",children:"* Past performance is not indicative of future results. All figures are as at 31 December 2025. Portfolio metrics are unaudited and subject to final audit confirmation. Returns are stated before management fees and carried interest unless otherwise noted."})]})}),FS=["CMA License No. XXX","CBK Regulated","Ministry of Commerce","Shari'a Certified"],Nf=[{title:"Best Real Estate Investment Firm – Kuwait",year:"2025",org:"GCC Finance Awards"},{title:"Best Shari'a-Compliant Real Estate Fund – GCC",year:"2024",org:"Islamic Finance News"},{title:"Best Development Project – Kuwait",year:"2024",org:"MENA Property Awards"}],zS=()=>c.jsx("section",{className:"bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Governance & Recognition"}),c.jsx("h2",{className:"section-title mb-2",children:"Regulatory Compliance & Awards"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"الامتثال التنظيمي والجوائز"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10",children:[c.jsxs("div",{className:"border border-border rounded-sm p-8",children:[c.jsx("p",{className:"text-[#0A2540] font-bold text-sm uppercase tracking-widest mb-4",children:"Regulatory Compliance"}),c.jsxs("p",{className:"text-[#4A5B6E] text-xs leading-relaxed mb-6",children:["Al Amal's real estate activities operate under the supervision of the"," ",c.jsx("strong",{className:"text-[#0A2540]",children:"Capital Markets Authority (CMA) of Kuwait"})," (License No. XXX) and the ",c.jsx("strong",{className:"text-[#0A2540]",children:"Central Bank of Kuwait (CBK)"})," where applicable. Our operations comply with the Kuwait Ministry of Commerce and Industry regulations. Our Shari'a Supervisory Board reviews all real estate investments annually and issues compliance certificates."]}),c.jsx("p",{className:"text-[#4A5B6E] text-xs leading-relaxed mb-6",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"تخضع أنشطة الاستثمار العقاري لشركة المانزا لإشراف هيئة أسواق المال الكويتية وبنك الكويت المركزي حيثما ينطبق ذلك، وتلتزم بأنظمة وزارة التجارة والصناعة الكويتية."}),c.jsx("div",{className:"flex flex-wrap gap-2",children:FS.map(e=>c.jsx("span",{className:"reg-badge",children:e},e))})]}),c.jsxs("div",{className:"border border-border rounded-sm p-8",children:[c.jsx("p",{className:"text-[#0A2540] font-bold text-sm uppercase tracking-widest mb-4",children:"Awards & Recognition"}),c.jsx("ul",{className:"space-y-4 mb-6",children:Nf.map(e=>c.jsxs("li",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"shrink-0 w-10 h-10 rounded-sm flex items-center justify-center text-xs font-bold text-white",style:{background:"#C6A142"},children:e.year}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#0A2540] font-semibold text-sm leading-snug",children:e.title}),c.jsx("p",{className:"text-[#4A5B6E] text-xs mt-0.5",children:e.org})]})]},e.title))}),c.jsx("div",{className:"flex flex-wrap gap-2",children:Nf.map(e=>c.jsxs("span",{className:"award-badge",children:[e.year," – ",e.org]},e.title+e.year))})]})]})]})}),DS=[{title:"Real Estate Investment Brochure",lang:"English",size:"PDF · 1.7 MB",desc:"Comprehensive overview of Al Amal's real estate investment strategies, portfolio, and track record."},{title:"كتيب الاستثمار العقاري",lang:"العربية",size:"PDF · 1.9 MB",desc:"نظرة شاملة على استراتيجيات الاستثمار العقاري لشركة المانزا وحجم المحفظة وسجل الأداء.",isArabic:!0},{title:"Sample Real Estate Fund Fact Sheet",lang:"English",size:"PDF · 0.6 MB",desc:"Sample fact sheet for a Shari'a-compliant GCC real estate fund. Includes fund structure, target returns, and fee schedule."}],$S=()=>c.jsx("section",{className:"bg-[#F8FAFE]",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Documentation"}),c.jsx("h2",{className:"section-title mb-2",children:"Downloadable Resources"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"الموارد القابلة للتنزيل"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:DS.map(e=>c.jsxs("div",{className:"inst-card flex-col justify-between",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-sm bg-[#0A2540] flex items-center justify-center shrink-0",children:c.jsx(Vd,{size:18,color:"#C6A142"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] font-semibold text-[#C6A142] uppercase tracking-widest",children:e.lang}),c.jsx("p",{className:"text-[10px] text-muted-foreground",children:e.size})]})]}),c.jsx("p",{className:`text-[#0A2540] font-bold text-sm mb-2 ${e.isArabic?"text-right":""}`,style:e.isArabic?{fontFamily:"'Tajawal', sans-serif"}:{},children:e.title}),c.jsx("p",{className:`text-[#4A5B6E] text-xs leading-relaxed mb-5 ${e.isArabic?"text-right":""}`,style:e.isArabic?{fontFamily:"'Tajawal', sans-serif",direction:"rtl"}:{},children:e.desc})]}),c.jsxs("button",{className:"flex items-center gap-2 text-xs font-semibold text-[#0A2540] hover:text-[#C6A142] transition-colors border border-border hover:border-[#C6A142] rounded-sm px-4 py-2.5 w-full justify-center",children:[c.jsx(Vd,{size:14}),"Download PDF"]})]},e.title))}),c.jsx("p",{className:"text-muted-foreground text-[10px] mt-5",children:"Documents are provided for informational purposes only and do not constitute an offer or solicitation. Please review all disclaimers and risk factors prior to making any investment decision."})]})}),Pf=[{icon:Ox,title:"Asset Management",titleAr:"إدارة الأصول",desc:"Overview of all asset classes managed by Almanza Investment, including equities, fixed income, and alternatives.",cta:"Learn more",href:"#"},{icon:jx,title:"Annual Report",titleAr:"التقرير السنوي",desc:"Full performance, governance, and sustainability report for the fiscal year 2025. Audited by a Big 4 firm.",cta:"View Annual Report",href:"#"},{icon:kx,title:"Investor Relations",titleAr:"علاقات المستثمرين",desc:"Financial statements, CMA disclosures, quarterly updates, and AGM materials for Almanza stakeholders.",cta:"Visit IR",href:"#"},{icon:Lx,title:"Subsidiary Companies",titleAr:"الشركات التابعة",desc:"Almanza Real Estate, Almanza Ventures, and Almanza Industrial — our principal operating subsidiaries.",cta:"View Subsidiaries",href:"#"}],BS=()=>c.jsx("section",{className:"bg-white",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-14",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("span",{className:"section-label block mb-3",children:"Explore Further"}),c.jsx("h2",{className:"section-title mb-2",children:"Related Content"}),c.jsx("p",{className:"section-title-ar",style:{fontFamily:"'Tajawal', sans-serif"},children:"محتوى ذو صلة"}),c.jsx("div",{className:"divider-gold mt-4"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-0 border border-border rounded-sm overflow-hidden",children:Pf.map((e,t)=>{const n=e.icon;return c.jsxs("div",{className:`p-7 flex flex-col bg-white hover:bg-[#F8FAFE] transition-colors duration-200 ${tc.jsx("section",{style:{background:"#0A2540"},children:c.jsx("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-8 py-20",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{children:[c.jsx("span",{className:"inline-block text-xs font-semibold uppercase tracking-widest mb-4",style:{color:"#C6A142",letterSpacing:"0.14em"},children:"Partner with Almanza"}),c.jsx("h2",{className:"font-bold mb-2 text-white",style:{fontSize:"clamp(1.6rem, 3.5vw, 2.25rem)",lineHeight:1.2},children:"Become a Partner"}),c.jsx("p",{className:"mb-6",style:{fontFamily:"'Tajawal', sans-serif",color:"#C6A142",fontSize:"1.1rem",fontWeight:500,direction:"rtl",textAlign:"right"},children:"كن شريكاً استراتيجياً"}),c.jsx("div",{className:"h-0.5 w-16 mb-6",style:{background:"#C6A142"}}),c.jsx("p",{className:"text-white/75 text-sm leading-relaxed mb-4",children:"Almanza invests in a diversified portfolio of GCC real estate assets, including direct property, development projects, REITs, and real estate funds. Our Shari'a-compliant investment strategies are tailored for institutional investors, family offices, and high-net-worth individuals seeking stable income and long-term capital appreciation."}),c.jsx("p",{className:"text-white/55 text-xs leading-relaxed mb-8",style:{fontFamily:"'Tajawal', sans-serif",direction:"rtl",textAlign:"right"},children:"تدعو شركة المانزا للاستثمار المستثمرين المؤسسيين ومكاتب العائلات والأفراد ذوي الثروات العالية إلى استكشاف فرص الشراكة الاستراتيجية في محفظتنا العقارية المتنوعة عبر دول مجلس التعاون الخليجي."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs("a",{href:"/contact/schedule-consultation",className:"btn-gold flex items-center gap-2 justify-center",children:["Schedule a Consultation",c.jsx(jm,{size:14})]}),c.jsxs("a",{href:"mailto:re@almanzainvestment.com",className:"flex items-center gap-2 justify-center px-6 py-3.5 text-sm font-semibold text-white border border-white/20 rounded hover:border-white/50 transition-colors",children:[c.jsx(Wl,{size:14}),"Contact RE Team"]})]})]}),c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"p-6 border border-white/10 rounded-sm bg-white/5",children:[c.jsx("p",{className:"text-xs uppercase tracking-widest font-semibold mb-4",style:{color:"#C6A142"},children:"Real Estate Investment Team"}),c.jsx("div",{className:"space-y-3",children:[{Icon:Ix,label:"Direct Line",value:"+965 XXXX XXXX"},{Icon:Wl,label:"Investment Enquiries",value:"re@almanzainvestment.com"},{Icon:Wl,label:"Investor Relations",value:"ir@almanzainvestment.com"}].map(({Icon:e,label:t,value:n})=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-sm flex items-center justify-center shrink-0",style:{background:"rgba(198,161,66,0.15)"},children:c.jsx(e,{size:14,color:"#C6A142"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white/50 text-[10px] uppercase tracking-wide",children:t}),c.jsx("p",{className:"text-white text-xs font-medium",children:n})]})]},t))})]}),c.jsx("div",{className:"p-4 border border-white/10 rounded-sm bg-white/5",children:c.jsx("p",{className:"text-white/40 text-[10px] leading-relaxed",children:"This communication is directed at professional and institutional investors only. It does not constitute an offer or invitation to invest. All investments carry risk. Almanza Investment Company KSCC is licensed by the Capital Markets Authority (CMA) of Kuwait. Past performance is not indicative of future results."})})]})]})})}),VS=()=>c.jsxs("div",{className:"min-h-screen flex flex-col bg-white",children:[c.jsx(SS,{}),c.jsxs("main",{className:"flex-1",children:[c.jsx(kS,{}),c.jsx(NS,{}),c.jsx(PS,{}),c.jsx(TS,{}),c.jsx(RS,{}),c.jsx(MS,{}),c.jsx(_S,{}),c.jsx(IS,{}),c.jsx(zS,{}),c.jsx($S,{}),c.jsx(BS,{}),c.jsx(US,{})]}),c.jsx(bS,{})]}),WS=()=>{const e=fo();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},HS=new gC,KS=()=>c.jsx(yC,{client:HS,children:c.jsxs($2,{children:[c.jsx(bw,{}),c.jsx(t1,{}),c.jsx(gS,{children:c.jsxs(uS,{children:[c.jsx(li,{path:"/",element:c.jsx(CS,{})}),c.jsx(li,{path:"/services/real-estate-investment",element:c.jsx(VS,{})}),c.jsx(li,{path:"*",element:c.jsx(WS,{})})]})})]})});Zh(document.getElementById("root")).render(c.jsx(KS,{}));